HUB
Sign inSign up

tjamet/hugo

By tjamet

•Updated over 7 years ago

small docker image to run hugo https://gohugo.io

Image
0

1.6K

tjamet/hugo repository overview

⁠docker-hugo

small docker image to run hugo https://gohugo.io⁠

This image provides a whalebrew⁠ package to run hugo⁠

⁠Running through whalebrew

To install it through whalebrew, just run whalebrew install tjamet/hugo to benefit the plain hugo command.

⁠Running directly through docker

docker run --rm -v $PWD:/src -w /src -p 1313:1313 tjamet/hugo server -b http://localhost:1313 --bind=0.0.0.0

⁠Building a static docker image

Create a Dockerfile like this one


FROM tjamet/hugo as build

RUN mkdir -p /src
WORKDIR /src
COPY . /src/
RUN hugo

FROM nginx:alpine
COPY --from=build /src/public/ /usr/share/nginx/html/

Run a docker build

And enjoy your static website

Tag summary

Content type

Image

Digest

Size

21.4 MB

Last updated

over 7 years ago

docker pull tjamet/hugo