Dockerfile for Hugo
Pull the image from Docker Hub.
$ docker image pull dceoy/hugo
Run hugo commands
# Run a web server
$ docker container run --rm -p 1313:1313 -v ${PWD}:/work -w /work \
dceoy/hugo server --bind=0.0.0.0 --buildDrafts --watch
# Create a new content
$ docker container run --rm -v ${PWD}:/work -w /work \
dceoy/hugo new post/new.md
Run hugo commands with docker-compose
# Run a web server
$ docker-compose -f /path/to/docker-hugo/docker-compose.yml up
# Execute another command
$ docker-compose -f /path/to/docker-hugo/docker-compose.yml \
run --rm hugo <hugo_command>
Content type
Image
Digest
sha256:1e69e751a…
Size
76 MB
Last updated
about 2 months ago
docker pull dceoy/hugo