fix: change build script to pnpm
This commit is contained in:
parent
3f99cf60bf
commit
d18d8712df
1 changed files with 7 additions and 2 deletions
|
|
@ -1,11 +1,16 @@
|
|||
FROM node:20-slim as build-stage
|
||||
|
||||
ENV PNPM_HOME="/pnpm"
|
||||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
|
||||
RUN corepack enable
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
|
||||
RUN pnpm run build
|
||||
|
||||
FROM alpine as production-stage
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue