fix: git not in dockerfile
This commit is contained in:
+3
-4
@@ -1,6 +1,8 @@
|
|||||||
FROM ghcr.io/pnpm/pnpm:latest as Builder
|
FROM ghcr.io/pnpm/pnpm:latest as Builder
|
||||||
RUN pnpm runtime set node 22 -g
|
|
||||||
ENV CI=true
|
ENV CI=true
|
||||||
|
RUN pnpm runtime set node 22 -g
|
||||||
|
RUN apt update
|
||||||
|
RUN apt install git -y
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY pnpm-lock.yaml /app
|
COPY pnpm-lock.yaml /app
|
||||||
@@ -13,6 +15,3 @@ RUN pnpm run build
|
|||||||
FROM ghcr.io/static-web-server/static-web-server:latest
|
FROM ghcr.io/static-web-server/static-web-server:latest
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=Builder /app/build /public
|
COPY --from=Builder /app/build /public
|
||||||
# ENV SERVER_REDIRECT_TRAILING_SLASH=false
|
|
||||||
# ENTRYPOINT ["/static-web-server"]
|
|
||||||
# CMD ["--redirect-trailing-slash", "true"]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user