fix: update Hugo base image and fix build output path

This commit is contained in:
Cheick Oumar 2026-05-17 17:22:20 +02:00
commit dd9f79aadf

View file

@ -1,4 +1,4 @@
FROM klakegg/hugo:ext-alpine-onbuild AS builder
FROM klakegg/hugo:0.128.0-ext-alpine AS builder
WORKDIR /src
COPY . .
@ -18,11 +18,11 @@ ENV HUGO_FORMBRICKS_ENV_ID=$HUGO_FORMBRICKS_ENV_ID
ENV HUGO_FORMBRICKS_EVENT=$HUGO_FORMBRICKS_EVENT
ENV HUGO_FORMBRICKS_SDK_URL=$HUGO_FORMBRICKS_SDK_URL
RUN hugo --config ./hugo.toml --environment production --minify
RUN hugo --config ./hugo.toml --environment production --minify --destination /tmp/public
FROM nginx:1.27-alpine
COPY --from=builder /src/public /usr/share/nginx/html
COPY --from=builder /tmp/public /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]