Docker image running the Ghost blog on an alpine linux image with accessible config.
288
This is a Dockerfile which to generate a Docker image running the Ghost blog on an alpine linux image with accessible config.
Repo can be found at https://github.com/jcdarwin/docker-ghost-alpine
This has been adapted from the Git repo of the Docker official image (specifically this Dockerfile), as we want to expose the configuration as well as the content.
We do this in docker-entrypoint.sh by:
/var/lib/ghost/config.production.json to /var/lib/ghost/content/config.production.json/var/lib/ghost/config.production.json to /var/lib/ghost/content/config.production.jsonBuilding:
docker build -t mebooks/docker-ghost-alpine .
Running:
docker run -d \
--name ghost \
-p 3001:2368 \
-v /path/to/ghost/blog:/var/lib/ghost/content \
mebooks/docker-ghost-alpine:latest
# Run a bash shell in the container
docker exec -it ghost /bin/bash
Content type
Image
Digest
Size
141.1 MB
Last updated
almost 9 years ago
docker pull mebooks/docker-ghost-alpine