feat: improve dockerfile to support offline deployments

This commit is contained in:
Dorian TETU 2026-01-13 08:39:06 +01:00
parent 959eef5e91
commit dcf7f4f2cf
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