Skip to content

Commit

Permalink
Add node_modules to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
n4ze3m committed Nov 3, 2023
1 parent 0032e51 commit 76a0bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ RUN npm --no-update-notifier --no-fund --global install pnpm
COPY --from=server /app/dist/ .
COPY --from=server /app/prisma/ ./prisma
COPY --from=server /app/package.json .
COPY --from=server /app/node_modules/ ./node_modules
# Copy UI
COPY --from=build /app/app/ui/dist/ ./public
# Copy widgets
Expand All @@ -39,7 +40,6 @@ COPY --from=build /app/app/widget/dist/index.html ./public/bot.html
# Copy script
COPY --from=build /app/app/script/dist/chat.min.js ./public/chat.min.js

RUN npm install --production --legacy-peer-deps --no-optional

ENV NODE_ENV=production

Expand Down

0 comments on commit 76a0bf6

Please sign in to comment.