https://github.com/krolow/docker-gohugo
Docker image for hugo static site generator (gohugo)
https://github.com/krolow/docker-gohugo
docker-container docker-image hugo
Last synced: 3 months ago
JSON representation
Docker image for hugo static site generator (gohugo)
- Host: GitHub
- URL: https://github.com/krolow/docker-gohugo
- Owner: krolow
- Created: 2016-03-10T22:21:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-27T21:38:46.000Z (over 10 years ago)
- Last Synced: 2025-03-22T06:27:48.654Z (over 1 year ago)
- Topics: docker-container, docker-image, hugo
- Language: Shell
- Homepage: https://hub.docker.com/r/krolow/gohugo/
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-gohugo
Docker image for [hugo static site generator](http://gohugo.io) based on [alpine](http://www.alpinelinux.org/).
#### Run docker image
```
docker run --rm -p 1313:1313 -v $(pwd):/root/hugo krolow/gohugo serve --bind=0.0.0.0
```
#### Run hugo command
To be more easy to run i have created one [bash script](https://github.com/krolow/docker-gohugo/blob/master/hugo) to make life easy...
Once you have download the bash script, and have set to be in your bin path, you can exec as above:
```bash
hugo serve
```
or can point out the folder
```bash
hugo /home/krolow/myproject/ serve -w
```
```bash
hugo help
```
### Features
* [Highlight support by Pygments](https://gohugo.io/extras/highlighting/)
* Bash (if you want to write inside docker)
* Hugo script to exec as it was directly in host
## License
Licensed under [The MIT License](http://krolow.mit-license.org/)
Redistributions of files must retain the above copyright notice.
## Author
Vinícius Krolow - krolow[at]gmail.com