update: Dockerfile
This commit is contained in:
+5
-1
@@ -4,10 +4,14 @@ ENV UV_HTTP_TIMEOUT=300
|
||||
ENV UV_DEFAULT_INDEX=https://pypi.tuna.tsinghua.edu.cn/simple/
|
||||
|
||||
COPY pyproject.toml uv.lock ./
|
||||
COPY common/pyproject.toml common/pyproject.toml
|
||||
COPY schedule/pyproject.toml schedule/pyproject.toml
|
||||
RUN uv sync --frozen --no-dev --package schedule --no-install-workspace
|
||||
|
||||
COPY common ./common
|
||||
COPY schedule ./schedule
|
||||
COPY extras ./extras
|
||||
RUN uv sync --frozen --no-dev --no-editable --package schedule --no-install-workspace
|
||||
RUN uv sync --frozen --no-dev --package schedule
|
||||
|
||||
RUN uv venv --python 3.12 /opt/venv/python3.12 && \
|
||||
uv pip install --python /opt/venv/python3.12/bin/python -r extras/requirements-py312 && \
|
||||
|
||||
Reference in New Issue
Block a user