Skip to content

Commit

Permalink
fix: address suggestions dockerfile frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
abdou6666 committed Jan 22, 2025
1 parent 8cf6196 commit b37abe8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b37abe8

Please sign in to comment.