From d5b7b9925c8c640dfea1c9447608e3f833afaebf Mon Sep 17 00:00:00 2001 From: Six <23470032+6ixfalls@users.noreply.github.com> Date: Tue, 16 Jan 2024 19:16:37 -0800 Subject: [PATCH] Copy packagejson --- apps/client/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/client/Dockerfile b/apps/client/Dockerfile index edd65fca..b29cfd4b 100644 --- a/apps/client/Dockerfile +++ b/apps/client/Dockerfile @@ -7,8 +7,9 @@ FROM node:16.18.1 as builder WORKDIR /app COPY ./dist/apps/client ./yarn.lock ./prisma ./ +COPY ./package.json ./ # Install dependencies -RUN yarn install --production=false && yarn add @next/bundle-analyzer +RUN yarn install --production=false # ------------------------------------------ # PROD STAGE @@ -21,4 +22,4 @@ WORKDIR /app USER node COPY --from=builder /app . -CMD ["yarn", "run", "start"] \ No newline at end of file +CMD ["npx", "next start"] \ No newline at end of file