fix virtual package removal
This commit is contained in:
parent
1f58d4be23
commit
606ef29e09
1 changed files with 1 additions and 1 deletions
|
@ -6,6 +6,7 @@ WORKDIR /app
|
||||||
COPY package.json pnpm-lock.yaml* ./
|
COPY package.json pnpm-lock.yaml* ./
|
||||||
RUN yarn global add pnpm
|
RUN yarn global add pnpm
|
||||||
RUN pnpm install
|
RUN pnpm install
|
||||||
|
RUN apk del .gyp
|
||||||
|
|
||||||
# Rebuild the source code only when needed
|
# Rebuild the source code only when needed
|
||||||
FROM node:16-alpine AS builder
|
FROM node:16-alpine AS builder
|
||||||
|
@ -13,7 +14,6 @@ WORKDIR /app
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
RUN apk del .gyp
|
|
||||||
|
|
||||||
# Production image, copy all the files and run next
|
# Production image, copy all the files and run next
|
||||||
FROM node:16-alpine AS runner
|
FROM node:16-alpine AS runner
|
||||||
|
|
Loading…
Add table
Reference in a new issue