Reputation: 696
I am able to setup the meteor on my local machine. Has to push it to the EC2 container using the Docker Images. While doing the build step, the build process throwing the error meteor not found.
Dockerfile:
FROM node:14.3
RUN curl https://install.meteor.com/ | sh
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN chmod -R 700 /usr/src/app/.meteor/local
RUN meteor run install
RUN meteor build --server-only --directory build
Terminal Command:
docker build -t meteor-test .
Upvotes: 1
Views: 680
Reputation: 174
meteor is not installing in your docker container because of certificate error while doing curl.
Fixed Dockerfile
FROM node:14.3
RUN curl https://install.meteor.com/ -k | sh
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN chmod -R 700 /usr/src/app/.meteor/local
RUN meteor run install
RUN meteor build --server-only --directory build
-k means insecure, which basically means it will not check the ssl certificate while doing curl. If you feel the website is not trust worthy then don't do the curl with -k flag.
Upvotes: 1