Sign inSign up

mebooks/docker-ghost-alpine

By mebooks

Updated almost 9 years ago

Docker image running the Ghost blog on an alpine linux image with accessible config.

Image
0

288

mebooks/docker-ghost-alpine repository overview

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:

  • moving /var/lib/ghost/config.production.json to /var/lib/ghost/content/config.production.json
  • and then symlinking /var/lib/ghost/config.production.json to /var/lib/ghost/content/config.production.json

Building:

 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

Tag summary

Content type

Image

Digest

Size

141.1 MB

Last updated

almost 9 years ago

docker pull mebooks/docker-ghost-alpine