Merge pull request #414 from Nayrode/main

feat: improve dockerfile to support offline deployments
This commit is contained in:
Luis Novo 2026-01-13 19:38:45 -03:00 committed by GitHub
commit aef8a0850e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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