From 1b165b0a70d8b4605017c18009ec81aa3ac62670 Mon Sep 17 00:00:00 2001 From: phillychi3 Date: Thu, 26 Dec 2024 22:46:03 +0800 Subject: [PATCH] fix: module not found --- frontend/web/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/web/Dockerfile b/frontend/web/Dockerfile index 5756037..1d938e6 100644 --- a/frontend/web/Dockerfile +++ b/frontend/web/Dockerfile @@ -16,6 +16,8 @@ RUN pnpm prune --prod FROM node:22-alpine AS deployer COPY --from=builder /app/build build/ -EXPOSE 3000 +COPY --from=builder /app/node_modules node_modules/ +EXPOSE 3000 +ENV NODE_ENV=production CMD [ "node", "build" ] \ No newline at end of file