fix: update build output path in Dockerfile to use /out directory

This commit is contained in:
Cheick Oumar 2026-05-17 17:25:36 +02:00
commit af44031f05

View file

@ -18,11 +18,13 @@ 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 --destination /tmp/public
RUN mkdir -p /out \
&& hugo --config ./hugo.toml --environment production --minify --destination /out \
&& test -f /out/index.html
FROM nginx:1.27-alpine
COPY --from=builder /tmp/public /usr/share/nginx/html
COPY --from=builder /out /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]