Scripts and dockerfiles required to build Ghost docker images.
build-ghost.sh: Checks out and builds Ghost from Stek.io's repo.build-image.sh: Builds Ghost imagestart-ghost.sh: Default command used within the Docker Container
Before building make sure you have the latest node 4 installed, e.g.
nvm install 4
nvm use 4
- Build Ghost: Run the following command to build Ghost:
./build-ghost.sh <tag to build> - Build Docker image: Run the following command to build a Docker image:
./build-image.sh -t <docker image full name> . - Push upstream:
docker push(you will need to be logged in the Docker Hub repository; dodocker loginto start a Docker login prompt)
Example:
./build-ghost.sh 1.0.0-alpha.19
./build-image.sh -t stek/ghost:1.0.0-alpha.19 . # mind the dot!
docker login
docker push stek/ghost:1.0.0-alpha.19