docker
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user