Lightweight Hugo + Go image based on Alpine Linux
2.3K
A lightweight Docker image containing Hugo and Go (Golang), based on Alpine Linux. This image is ideal for building and deploying static sites generated with Hugo, especially those that require Go modules or extended features.
You can use this image to run Hugo commands directly without installing Hugo or Go on your host machine.
docker run --rm yinanzhou/hugo hugo version
To build your Hugo site, mount your project directory into the container:
docker run --rm -v $(pwd):/src -w /src yinanzhou/hugo hugo
To run the Hugo development server and expose port 1313:
docker run --rm -v $(pwd):/src -w /src -p 1313:1313 yinanzhou/hugo hugo server --bind 0.0.0.0
The source code for this Dockerfile is maintained in the following repository: GitLab: yinanzhou/docker-images
Content type
Image
Digest
sha256:1fec19d52…
Size
108.1 MB
Last updated
7 days ago
docker pull yinanzhou/hugo