refactor: update Dockerfile

This commit is contained in:
zyronon 2024-05-01 22:07:36 +08:00
parent 6b198e8f21
commit 6d95c87a91

View File

@ -9,9 +9,8 @@ WORKDIR /app
COPY . .
# RUN两次方便观察install和build, 也可以用pnpm cache and locked
RUN pnpm install
RUN npm run build
RUN pnpm install && pnpm run build
FROM --platform=${BUILDPLATFORM:-linux/amd64,linux/arm64} ghcr.io/rookie-luochao/nginx-runner:latest
COPY --from=builder /app/dist .