mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
fix(dockerfile): needs dummy db url (#1368)
This commit is contained in:
committed by
GitHub
parent
658cf11299
commit
6028b1f5c0
@@ -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
|
||||
|
||||
# ========================================
|
||||
|
||||
Reference in New Issue
Block a user