diff --git a/Dockerfile b/Dockerfile index bbd5f28..6ab1b3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,8 @@ FROM node:lts-alpine AS deps WORKDIR /opt/app -COPY package.json yarn.lock ./ -RUN yarn install --frozen-lockfile +COPY package.json pnpm-lock.yaml ./ +RUN pnpm install --frozen-lockfile # Rebuild the source code only when needed # This is where because may be the case that you would try @@ -17,7 +17,7 @@ ENV NODE_ENV=production WORKDIR /opt/app COPY . . COPY --from=deps /opt/app/node_modules ./node_modules -RUN yarn build +RUN pnpm build # Production image, copy all the files and run next FROM node:lts-alpine AS runner