fix dockerfile for wrong lock file copy

main
Ayush Mukherjee 2 years ago
parent 6a9b6a3c9f
commit 0a111324db

@ -1,23 +1,25 @@
FROM node:18-alpine AS builder FROM node:18-alpine AS pnpm
RUN npm i -g pnpm
FROM pnpm AS builder
WORKDIR "/app" WORKDIR "/app"
COPY . . COPY . .
RUN npm i -g pnpm
RUN pnpm i RUN pnpm i
RUN pnpm build RUN pnpm build
RUN pnpm prune --production RUN pnpm prune --production
FROM node:18-alpine AS prod FROM pnpm AS prod
WORKDIR "/app" WORKDIR "/app"
COPY --from=builder /app/package.json ./package.json COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/package-lock.json ./package-lock.json COPY --from=builder /app/pnpm-lock.yaml ./pnpm-lock.yaml
COPY --from=builder /app/dist ./dist COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/node_modules ./node_modules

Loading…
Cancel
Save