Skip to content

Commit ab2bad5

Browse files
author
claudfuen
committed
fix: add NODE_ENV=production to Docker builder stage
- Environment validation requires both DATABASE_URL and NODE_ENV - Missing NODE_ENV was causing bun run build to fail during Docker build - Fixes application build failure during deployment
1 parent e69364f commit ab2bad5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/web/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RUN yum update -y && yum install -y unzip && \
2323
# Accept DATABASE_URL as build argument
2424
ARG DATABASE_URL
2525
ENV DATABASE_URL=$DATABASE_URL
26+
ENV NODE_ENV=production
2627

2728
# Copy dependencies from previous stage
2829
COPY --from=deps /app/node_modules ./node_modules

0 commit comments

Comments
 (0)