CyCoreSystems / docker-meteor

Dockerfile and script for running Meteor on Docker
MIT License
120 stars 73 forks source link

compile/bundle meteor app with dockerfile #32

Closed Antoine-O closed 7 years ago

Antoine-O commented 7 years ago

hey there,

is there any way to compile meteor app in the dockerfile, the compilation is so long while deploying :/

thanks.

Ulexus commented 7 years ago

Yes. I do exactly that. Take a look at the example.

Ulexus commented 7 years ago

You needn't use the kubernetes part; the first part of the deploy script is all you need, with the Dockerfile. Basically, something like this:

cd $app_source
meteor build --directory /tmp/export-meteor/build
cat >/tmp/export-meteor/Dockerfile <<ENDHERE
FROM ulexus/meteor:v1.4
COPY build /var/www
ENDHERE
cd /tmp/export-meteor
docker build -t myapp .
docker push myapp