Sign inSign up

solidnerd/hugo

By solidnerd

•Updated almost 8 years ago

Hugo in a container

Image
2

100K+

solidnerd/hugo repository overview

⁠docker-hugo

Hugo⁠ in a docker container

⁠How to use this Image

⁠Building a Site

docker run -it --rm -v $(pwd):/hugo solidnerd/hugo

⁠Develop your Website

docker run -it --rm -v $(pwd):/hugo -p 1313:1313 solidnerd/hugo hugo server --bind 0.0.0.0

⁠Build image

 docker build --build-arg HUGO_VERSION=$(cat VERSION) -t "solidnerd/hugo:$(cat VERSION)" .

⁠Build Parameters

Here are all possible hugo build args listed.

ARGDescription
HUGO_VERSIONSets the used hugo version during the build. Defaults to 0.18
HUGO_DOWNLOAD_URLSets the hugo download url during the build. Defaults to https://github.com/gohugio/hugo/releases/download/v$HUGO_VERSION/hugo_"$HUGO_VERSION"_Linux-64bit.tar.gz"
HUGO_DOWNLOAD_FILE_NAMESets the hugo filename during the build. Defaults to hugo.tar.gz

⁠Issues

If you have any issues feel free to create an issue on GitHub⁠

Tag summary

Content type

Image

Digest

Size

24.3 MB

Last updated

almost 8 years ago

docker pull solidnerd/hugo