Wicknet.dev Devlog 2025-02-10
According to the hugo documentation, the Dockerfile was reworked, and the structure of the docker container now follows the pattern of a hugo builder image and an nginx image that actually runs the static site. FROM hugomods/hugo:exts as builder ARG HUGO_BASEURL ENV HUGO_BASEURL=${HUGO_BASEURL} ARG HUGO_ENV ENV HUGO_ENV=${HUGO_ENV} COPY . /src RUN hugo --minify FROM hugomods/hugo:nginx COPY --from=builder /src/public /site Build with: docker build -t <tag> --build-arg HUGO_BASEURL="https://wicknet.dev" This is cleaner than using hugo itself to serve the files as was done in the quick and dirty first draft. ...