Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 911 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 911 Bytes

Docker

Hugo docker image

The static site builder in a container.

This image is build weekly on Sunday evening using docker actions in https://github.com/ikstream/hugo-docker

To run it with a command prompt run it in your the directory you want to use it with

docker run --name hugo -it -p 1313:1313 -v $(pwd):/src/ --rm localhost/hugo

This will mount your local directory into the docker container and expose port 1313

To create a new site with hugo run

docker run --name hugo -it -p 1313:1313 -v $(pwd):/src/ --rm localhost/hugo hugo new site

To test your local changes just run

docker run --name hugo -it -p 1313:1313 -v $(pwd):/src/ --rm localhost/hugo hugo server <your arguments>