This is a simple, lightweight docker image to aid in building Hugo static sites.
This image was meant to be used as the initial step in a multi-stage build, so it does not expose any volumes or ports by default.
When run, it will run Hugo on the /src directory, and put the finished files into the /output directory.
So far there is only latest. It will be updated as Hugo versions are released.
dockerfile with the contents belowsrc/ directory, and copy your Hugo site contents theredocker build -t website . to build an image for your websitedocker run --name my-website -d websitedockerfile:
FROM kuzimoto/hugo-build-docker AS builder
COPY ./src /src
RUN /run.sh
FROM nginx:stable-alpine
RUN rm -r /usr/share/nginx/html/*
COPY --from=builder "/output" "/usr/share/nginx/html"
Content type
Image
Digest
Size
24.7 MB
Last updated
over 6 years ago
docker pull kuzimoto/hugo-build-docker