1.0K
otium360 base Dockerfile for Meteor (NodeJs) server runtinme.
Check the official Meteor Documentation for more details, specially the section Running on your own infrastructure. Take a look also at the README file generated under your bundled Meteor application.
This image assumes that your application:
is bundled using meteor build --directory
your Dockerfile is in the same folder that the Meteor bundle folder. Something like this:
my/build/folder
├── Dockerfile
├── bundle
| ├── main.js
| ├── README
| ├── ...
The image will add to the container the bundle folder and install the required NPM dependencies locally.
The default command is:
CMD ["node", "main.js"]
Extending via Dockerfile is just as easy as declaring your Meteor environment variables and EXPOSE the right port.
Sample Dockerfile:
FROM otium360organization/meteor-nodejs-runtime
MAINTAINER Bálder Carraté <[email protected]>
ENV \
ROOT_URL=http://my-app.meteor.server \
PORT=8080 \
MONGO_URL=mongodb://my-app.mongo.server:27017/my-app
EXPOSE $PORT
Sample execution (be sure to replace names and ports to match your environment):
docker build -t my-app-meteor /path/to/your/Dockerfile
docker run -d -p 8080:8080 --name my-app-meteor my-app-meteor
Content type
Image
Digest
sha256:2c8976ce8…
Size
268.1 MB
Last updated
almost 11 years ago
docker pull otium360organization/meteor-nodejs-runtime