Standard Dockerfile for deploying bundled Meteor apps.
This is a simple onbuild Dockerfile for running Meteor 1.3+ with Docker.
The following tags are available, and correspond to the related Node.JS version supported by Meteor:
Just create a new
Dockerfile in the root of your application, specifying the version of Node that your Meteor install is setup to use (find this out with
meteor node --version):
Then, build your Docker image by running:
docker build -t foo/bar:188.8.131.52 .
This image uses yarn to install node modules, so it is highly recommended to use yarn when developing and installing modules locally. You can do this by running
meteor npm i -g email@example.com, and then use
meteor yarn instead of
meteor npm install.
Place the .builddeploy in the root of your Meteor directory, update it's contents where appropriate, make it executable, then run the command:
./.builddeploy production 184.108.40.206
This will build a Docker image for the appropriate environment (production or staging) and the appropriate tag (ex. 220.127.116.11), push it to a Docker registry, then start a container on your production server with your desired configuration.