Basic docker image with node v0.12 and pm2 support
299
This is a basic docker image with node v0.12 and pm2 (the process manager) installed.
This image is meant to be used as a base image for your apps. It will use /app folder as the place for the source code and the working directory. You do not need to provide your app as a volume, this image will take care of copying your app.
Also, the executable should be provided as an environment variable (SCRIPT). The default value is server.js.
Typical Dockerfile should look like this:
FROM siberia/node-pm2:latest
ENV PM2_SECRET aaaaa
ENV PM2_PUBLIC bbbbb
ENV PM2_HOST server
$ docker build -t my-container .
$ docker run --name my-app my-container
$ docker run -e "NODE_ENV=development" -e "PM2_SECRET=a" -e "PM2_PUBLIC=b" --name my-app my-container
Content type
Image
Digest
sha256:85734efb3…
Size
184.2 MB
Last updated
about 11 years ago
docker pull siberia/node-pm2