mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(dockerfile): needs dummy db url (#1368)
This commit is contained in:
@@ -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