diff --git a/Dockerfile b/Dockerfile index c21540f..e6564b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -66,6 +66,10 @@ COPY --from=builder /app/.venv /app/.venv # Copy the application code COPY --from=builder /app /app +# Ensure uv uses the existing venv without attempting network operations +ENV UV_NO_SYNC=1 +ENV VIRTUAL_ENV=/app/.venv + # Copy built frontend from builder stage COPY --from=builder /app/frontend/.next/standalone /app/frontend/ COPY --from=builder /app/frontend/.next/static /app/frontend/.next/static diff --git a/supervisord.conf b/supervisord.conf index ea4d1cf..14bbb64 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -5,7 +5,7 @@ logfile_maxbytes=0 pidfile=/tmp/supervisord.pid [program:api] -command=uv run uvicorn api.main:app --host 0.0.0.0 --port 5055 +command=uv run --no-sync uvicorn api.main:app --host 0.0.0.0 --port 5055 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr @@ -15,7 +15,7 @@ priority=10 autostart=true [program:worker] -command=uv run surreal-commands-worker --import-modules commands +command=uv run --no-sync surreal-commands-worker --import-modules commands stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr