Sign inSign up

yinanzhou/hugo

By yinanzhou

•Updated 7 days ago

Lightweight Hugo + Go image based on Alpine Linux

Image
Developer tools
0

2.3K

yinanzhou/hugo repository overview

⁠yinanzhou/hugo

pipeline status

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.

⁠Features

  • Hugo: The world’s fastest framework for building websites.
  • Go: Included as the base image, useful for Hugo projects that utilize Go modules.
  • Git: Installed to support fetching themes or content from remote repositories.
  • Alpine Linux: Ensures a minimal image size for fast downloads and deployments.

⁠Usage

You can use this image to run Hugo commands directly without installing Hugo or Go on your host machine.

⁠Check Version
docker run --rm yinanzhou/hugo hugo version
⁠Build a Site

To build your Hugo site, mount your project directory into the container:

docker run --rm -v $(pwd):/src -w /src yinanzhou/hugo hugo
⁠Run a Development Server

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

⁠Source Repository

The source code for this Dockerfile is maintained in the following repository: GitLab: yinanzhou/docker-images⁠

Tag summary

Content type

Image

Digest

sha256:1fec19d52…

Size

108.1 MB

Last updated

7 days ago

docker pull yinanzhou/hugo