|Jake Jarvis 51c9c67055||1 week ago|
|.github/workflows||4 months ago|
|.dockerignore||10 months ago|
|Dockerfile||1 week ago|
|LICENSE.md||1 year ago|
|README.md||5 months ago|
This will start a live server at http://localhost:1313/ from the Hugo site in your current directory:
docker run -v $(pwd):/src -p 1313:1313 jakejarvis/hugo-extended:latest server --buildDrafts --buildFuture --bind 0.0.0.0
version: '3' services: hugo: image: jakejarvis/hugo-extended:latest ports: - 1313:1313 volumes: - ./:/src command: server --buildDrafts --buildFuture --bind 0.0.0.0
When using Docker to run a live server (i.e.
hugo server), you must pass
--bind 0.0.0.0 as an argument to fix some networking quirks between Hugo, the container, and the host.
Just in case, the final container includes a few small third-party tools that are required by certain optional Hugo features:
Node (with NPM and Yarn) and Go (for Hugo Modules support) are also pre-installed.