Skip to content

Commit

Permalink
refactor: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zyronon committed May 1, 2024
1 parent 6b198e8 commit 6d95c87
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

0 comments on commit 6d95c87

Please sign in to comment.