From 07ec13aec762d3ae1cb22cdaab25a88a2558de5a Mon Sep 17 00:00:00 2001 From: Tim Swanson <152931212+timswanson-google@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:34:23 -0700 Subject: [PATCH] [unified-server] Update NODE_ENV on Dockerfile (#4119) This value has to be set to "production" to prevent ViteExpress from trying to use the Vite dev server to serve client-side artifacts. Part of #3913 --- packages/unified-server/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/unified-server/Dockerfile b/packages/unified-server/Dockerfile index cff4704468..1d696dfa3a 100644 --- a/packages/unified-server/Dockerfile +++ b/packages/unified-server/Dockerfile @@ -5,5 +5,7 @@ COPY . . RUN npm install --save-dev @types/express RUN npm run build +ENV NODE_ENV="production" EXPOSE 3000 + CMD ["node", "dist/src/server/main.js"]