fix: update build output path in Dockerfile to use /out directory
This commit is contained in:
parent
3bc7617ead
commit
af44031f05
1 changed files with 4 additions and 2 deletions
|
|
@ -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;"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue