From c221bb58564cda3e1344ef3eeba0dda39f61187d Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Wed, 11 Dec 2024 16:19:37 -0800 Subject: [PATCH] Try setting NODE_ENV --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d6456f9..2508647 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,10 @@ FROM oven/bun:latest WORKDIR /app COPY . . + +ENV NODE_ENV=production RUN bun install --frozen-lockfile --production RUN bun pack ENV HOST="0.0.0.0" -CMD [ "bun", "./dist/server/entry.mjs" ] +CMD [ "bun", "run", "./dist/server/entry.mjs" ]