https://github.com/ikstream/hugo-docker
Dockerfile for the static site generator hugo with automated weekly updates
https://github.com/ikstream/hugo-docker
containers docker docker-image gohugo gohugoio hugo
Last synced: 3 months ago
JSON representation
Dockerfile for the static site generator hugo with automated weekly updates
- Host: GitHub
- URL: https://github.com/ikstream/hugo-docker
- Owner: ikstream
- License: mit
- Created: 2021-02-12T14:19:18.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-06-25T14:02:04.000Z (about 1 year ago)
- Last Synced: 2025-12-30T01:24:23.061Z (6 months ago)
- Topics: containers, docker, docker-image, gohugo, gohugoio, hugo
- Language: Dockerfile
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/ikstream/hugo-docker/actions/workflows/docker-publish.yaml)
# 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
```