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