update: UV_HTTP_TIMEOUT

This commit is contained in:
tao.chen
2026-08-14 15:27:16 +08:00
parent e9a7e1a24e
commit af9466c4e6
3 changed files with 14 additions and 10 deletions
+6 -2
View File
@@ -5,8 +5,12 @@ COPY backend ./backend
COPY alembic.ini ./
COPY migrations ./migrations
COPY pyproject.toml uv.lock ./
RUN UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple/" uv lock && \
UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple/" uv sync --no-dev --no-editable --package backend
ENV UV_HTTP_TIMEOUT=300
ENV UV_DEFAULT_INDEX=https://pypi.tuna.tsinghua.edu.cn/simple/
RUN uv lock && \
uv sync --no-dev --no-editable --package backend
EXPOSE 8000
CMD ["gunicorn", "--config", "backend/gunicorn.conf.py", "backend.main:app"]