From 5896bd091a0c47c42d3910f705a53699009bc3e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA=E8=A1=9B?= =?UTF-8?q?=E9=9A=8A?= Date: Wed, 28 Feb 2024 15:04:06 +0000 Subject: [PATCH] ok --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 180b409..2e8955c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,11 @@ FROM node:20-slim as base WORKDIR /app -COPY package.json pnpm-lock.yaml , +RUN corepack enable +COPY package.json pnpm-lock.yaml . FROM base as build -RUN corepack enable - RUN pnpm install --frozen-lockfile COPY . . @@ -22,7 +21,7 @@ FROM node:20-slim WORKDIR /app COPY package.json pnpm-lock.yaml ./ -COPY --from=build /build/node_modules ./node_modules -COPY --from=build /build/dist . +COPY --from=installer /app/node_modules ./node_modules +COPY --from=build /app/dist . CMD ["node", "index.js"] \ No newline at end of file