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