diff --git a/Dockerfile b/Dockerfile index d42609a..27f7f53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . \ No newline at end of file