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
+4 -4
View File
@@ -1,13 +1,15 @@
FROM python-base:3.12
ENV UV_HTTP_TIMEOUT=300
ENV UV_DEFAULT_INDEX=https://pypi.tuna.tsinghua.edu.cn/simple/
COPY pyproject.toml uv.lock ./
COPY common ./common
COPY schedule ./schedule
COPY extras ./extras
RUN UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple/" uv sync --frozen --no-dev --no-editable --package schedule
RUN uv sync --frozen --no-dev --no-editable --package schedule
RUN uv venv --python 3.12 /opt/venv/python3.12 && \
UV_DEFAULT_INDEX=https://pypi.tuna.tsinghua.edu.cn/simple/ \
uv pip install --python /opt/venv/python3.12/bin/python -r extras/requirements-py312 && \
/opt/venv/python3.12/bin/python -m ipykernel install \
--prefix=/usr/local \
@@ -15,7 +17,6 @@ RUN uv venv --python 3.12 /opt/venv/python3.12 && \
--display-name="Python 3.12"
RUN uv venv --python 3.10 /opt/venv/python3.10 && \
UV_DEFAULT_INDEX=https://pypi.tuna.tsinghua.edu.cn/simple/ \
uv pip install --python /opt/venv/python3.10/bin/python -r extras/requirements-py310 && \
/opt/venv/python3.10/bin/python -m ipykernel install \
--prefix=/usr/local \
@@ -23,7 +24,6 @@ RUN uv venv --python 3.10 /opt/venv/python3.10 && \
--display-name="Python 3.10"
RUN uv venv --python 3.8 /opt/venv/python3.8 && \
UV_DEFAULT_INDEX=https://pypi.tuna.tsinghua.edu.cn/simple/ \
uv pip install --python /opt/venv/python3.8/bin/python -r extras/requirements-py38 && \
/opt/venv/python3.8/bin/python -m ipykernel install \
--prefix=/usr/local \