small docker image to run hugo https://gohugo.io
1.6K
small docker image to run hugo https://gohugo.io
This image provides a whalebrew package to run hugo
To install it through whalebrew, just run whalebrew install tjamet/hugo to benefit the plain hugo command.
docker run --rm -v $PWD:/src -w /src -p 1313:1313 tjamet/hugo server -b http://localhost:1313 --bind=0.0.0.0
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
Content type
Image
Digest
Size
21.4 MB
Last updated
over 7 years ago
docker pull tjamet/hugo