fix(dockerfile): needs dummy db url (#1368)

This commit is contained in:
Vikhyath Mondreti
2025-09-17 18:56:54 -07:00
committed by GitHub
parent 658cf11299
commit 6028b1f5c0

View File

@@ -43,6 +43,14 @@ ENV NEXT_TELEMETRY_DISABLED=1 \
DOCKER_BUILD=1
WORKDIR /app
# Provide dummy database URLs during image build so server code that imports @sim/db
# can be evaluated without crashing. Runtime environments should override these.
ARG DATABASE_URL="postgresql://user:pass@localhost:5432/dummy"
ARG POSTGRES_URL="postgresql://user:pass@localhost:5432/dummy"
ENV DATABASE_URL=${DATABASE_URL}
ENV POSTGRES_URL=${POSTGRES_URL}
RUN bun run build
# ========================================