From b37abe88c84ad0113c1fc71b74dd703f87a97a8f Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Wed, 22 Jan 2025 16:33:25 +0100 Subject: [PATCH] fix: address suggestions dockerfile frontend --- frontend/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 9577e57d..37d64cfd 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -47,6 +47,10 @@ WORKDIR /app COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ +COPY frontend/package*.json ./frontend/ + +COPY widget/package*.json ./widget/ + RUN npm install COPY ./frontend ./frontend @@ -68,7 +72,6 @@ CMD ["npm", "run", "dev", "--", "-p", "8080"] FROM base AS production WORKDIR /app -# RUN npm install next # used to by pass Next.js paching lock file ENV NEXT_IGNORE_INCORRECT_LOCKFILE=true ENV NODE_ENV=production