Pretty light docker container to run Hugo
stayfi/Go-Hugo require docker.
First, run your docker terminal.
Then you will need to clone this repo :
$ git clone https://github.com/Stayfi/gohugo.git
Build stayfi/gohugo container :
$ docker build -t stayfi/gohugo gohugo
You should make a new alias nawe "hugo" with this inside :
$ docker run -v $(pwd):/src --rm -p 1313:1313 stayfi/gohugo -s /src
To create a new site :
$ docker run -v $(pwd):/src --rm -p 1313:1313 stayfi/gohugo -s /src new site /src
Assuming your default docker IP address is 192.168.99.100, you can serve your site by :
$ docker run -v $(pwd):/src --rm -p 1313:1313 stayfi/gohugo -s server --theme=hugo_theme_robust --buildDrafts --bind "0.0.0.0" --baseURL 192.168.99.100:1313
Replace "192.168.99.100" by your docker host IP address.
Web server : http://192.168.99.100:1313
To start working on your site.
Stayfi B. - [email protected]
First version, working.
MIT license