fix: update Hugo base image and fix build output path
This commit is contained in:
parent
d2a9f905f1
commit
dd9f79aadf
1 changed files with 3 additions and 3 deletions
|
|
@ -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;"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue