This repository contains a fork of the Dockerfile of Ghost for Docker's trusted build published to the public Docker Registry.
It differs in that it
Install Docker.
Download trusted build from public Docker Registry: docker pull dockerfile/ghost
(alternatively, you can build an image from Dockerfile: docker build -t="dockerfile/ghost" github.com/dockerfile/ghost)
docker run -d -p 80:2368 dockerfile/ghost
docker run -d -p 80:2368 -v <override-dir>:/ghost-override dockerfile/ghost
where <override-dir> is an absolute path of a directory that could contain:
config.js: custom config file copied from here (you must replace 127.0.0.1 with 0.0.0.0)content/data/: persistent/shared datacontent/images/: persistent/shared imagescontent/themes/: more themesAfter few seconds, open http://<host> for blog or http://<host>/ghost for admin page.
You can control the uid and gid of the ghost user:
docker run -d -p 80:2368 -v <override-dir>:/ghost-override -e GHOST_UID=<uid> -e GHOST_GID=<gid> dockerfile/ghost
You may want to do this if you have a user in your host system that you're using to own the ghost overrides.
Content type
Image
Digest
sha256:ef94f6003…
Size
245.3 MB
Last updated
almost 11 years ago
docker pull cn28h/ghost