Supported tags and respective Dockerfile links
0.3,latest(0.3/Dockerfile)0.3-sass,sass(0.3/sass/Dockerfile)
The image is aiming to deploy keystonejs without rebuilding the image to install dependencies. It is particularly useful when the server has limited computational power, like f1-micro in google cloud.
-
Optionally start mongo db
docker run --name your-mongo -d mongo -
Add the mongo db settings into .env
MONGO_URI=mongodb://mongo -
Run the container by the following command
docker run -p 80:3000 -it -d --link your-mongo:mongo --name keystonejs -v "$PWD":/usr/src/app ngyukman/keystonejs
alternatively if sass is enabled
docker run -p 80:3000 -it -d --link your-mongo:mongo --name keystonejs -v "$PWD":/usr/src/app ngyukman/keystonejs:sass