Sign inSign up

rira12621/hugo-docker

By rira12621

•Updated over 2 years ago

Hugo in a Container

Image
Integration & delivery
Developer tools
Web servers
0

493

rira12621/hugo-docker repository overview

⁠hugo-docker

Source to build hugo docker images Docker Pulls

Results of automated builds can be found on Docker Hub⁠

⁠How To Use

There are two options mainly: use the image bare just as a containerized hugo or build on top.

⁠Use as hugo container

docker run -ti --rm =p 1313:1313 -v /path/to/my/hugo/site:/website rira12621/hugo-docker hugo serve --source /website --bind=0.0.0.0

⁠Build on top

Like with any other image you can use FROM and then build accordingly:

FROM rira12621/hugo-docker

WORKDIR /website
ADD . .

ENV HUGO_BIND="0.0.0.0"
EXPOSE 1313

CMD ["sh", "-c", "hugo serve --bind=${HUGO_BIND}"]

Tag summary

Content type

Image

Digest

sha256:e7653b09c…

Size

29.2 MB

Last updated

over 2 years ago

docker pull rira12621/hugo-docker