Skip to content

Commit 6da132a

Browse files
committed
fix(docker): use build:ci script in Dockerfiles
Docker builds were using 'bun run build' which requires .env.production file via dotenv. This file isn't copied into Docker context. Changed to 'bun run build:ci' which uses env vars from ARG/ENV directly, matching how the CI workflow builds.
1 parent 8c2712f commit 6da132a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/admin-dashboard/docker/Dockerfile.bun

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ COPY packages/admin-dashboard ./packages/admin-dashboard
4949
COPY tsconfig.json ./
5050

5151
WORKDIR /app/packages/admin-dashboard
52-
RUN bun run build
52+
# Use build:ci (no dotenv dependency - env vars already set via ARG/ENV)
53+
RUN bun run build:ci
5354

5455
# ============================================================================
5556
# Stage 4: Runner

packages/webapp/docker/Dockerfile.bun

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ COPY .prettierrc.json ./
122122
COPY tsconfig.json ./
123123

124124
# Build Next.js app (standalone output configured in next.config.js)
125+
# Use build:ci (no dotenv dependency - env vars already set via ARG/ENV)
125126
WORKDIR /app/packages/webapp
126-
RUN bun run build
127+
RUN bun run build:ci
127128

128129
# ============================================================================
129130
# Stage 5: Runner - Production runtime

0 commit comments

Comments
 (0)