Standard Dockerfile for deploying bundled Meteor apps.
2.7K
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:
8.8, latest4.8-1, 4.84.74.64.54.40.10Just 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):
FROM markoshust/meteor:8.8
Then, build your Docker image by running:
docker build -t foo/bar:1.0.0.0 .
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 protected], 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 1.0.0.0
This will build a Docker image for the appropriate environment (production or staging) and the appropriate tag (ex. 1.0.0.0), push it to a Docker registry, then start a container on your production server with your desired configuration.
Content type
Image
Digest
Size
83.5 MB
Last updated
almost 9 years ago
docker pull markoshust/meteor