19 lines
434 B
Docker
19 lines
434 B
Docker
FROM ghcr.io/pnpm/pnpm:latest as Builder
|
|
RUN pnpm runtime set node 22 -g
|
|
ENV CI=true
|
|
|
|
WORKDIR /app
|
|
COPY pnpm-lock.yaml /app
|
|
RUN pnpm fetch --prod
|
|
|
|
COPY . /app
|
|
# Built files are in ./build
|
|
RUN pnpm run build
|
|
|
|
FROM ghcr.io/static-web-server/static-web-server:latest
|
|
WORKDIR /
|
|
COPY --from=Builder /app/build /public
|
|
# ENV SERVER_REDIRECT_TRAILING_SLASH=false
|
|
# ENTRYPOINT ["/static-web-server"]
|
|
CMD ["--redirect-trailing-slash", "true"]
|