Skip to content

Commit 6028b1f

Browse files
fix(dockerfile): needs dummy db url (#1368)
1 parent 658cf11 commit 6028b1f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docker/app.Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ ENV NEXT_TELEMETRY_DISABLED=1 \
4343
DOCKER_BUILD=1
4444

4545
WORKDIR /app
46+
47+
# Provide dummy database URLs during image build so server code that imports @sim/db
48+
# can be evaluated without crashing. Runtime environments should override these.
49+
ARG DATABASE_URL="postgresql://user:pass@localhost:5432/dummy"
50+
ARG POSTGRES_URL="postgresql://user:pass@localhost:5432/dummy"
51+
ENV DATABASE_URL=${DATABASE_URL}
52+
ENV POSTGRES_URL=${POSTGRES_URL}
53+
4654
RUN bun run build
4755

4856
# ========================================

0 commit comments

Comments
 (0)