Skip to content

Dockerized version of Hugo static website generator

License

Notifications You must be signed in to change notification settings

madduci/docker-hugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-hugo

Build and Publish

Hugo Docker container, powered by Alpine Linux and Hugo latest release available at GitHub repository.

To run this image (and to build your pages), you can simply run:

docker run --rm -it -p 1313:1313 -v /host/mysite:/site madduci/docker-hugo server --bind "0.0.0.0"

Beware as entrypoint the application hugo is exposed

Warning

By default, Hugo will run on 127.0.0.1 (default configuration): this will make Hugo unreachable from outside the docker container.

To override this behaviour, just give the extra --bind "X.X.X.X" parameter to serve the specific IP.