diff --git a/Dockerfile b/Dockerfile index b7ec2f3..da4785c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,16 +46,14 @@ RUN uv --version COPY pyproject.toml uv.lock README.md ./ COPY pixelle_video ./pixelle_video -# Install Python dependencies using uv with configurable index URL -# Create uv.toml config file to force using the mirror (most reliable method) -# Only create config when USE_CN_MIRROR=true, otherwise use default PyPI -RUN if [ "$USE_CN_MIRROR" = "true" ]; then \ - echo '[[index]]' > uv.toml && \ - echo 'url = "https://pypi.tuna.tsinghua.edu.cn/simple"' >> uv.toml && \ - echo 'default = true' >> uv.toml; \ - fi && \ - export UV_HTTP_TIMEOUT=300 && \ - uv sync --frozen --no-dev +# Install Python dependencies using uv pip install +# Use -i flag to specify mirror when USE_CN_MIRROR=true +RUN export UV_HTTP_TIMEOUT=300 && \ + if [ "$USE_CN_MIRROR" = "true" ]; then \ + uv pip install -e . -i https://pypi.tuna.tsinghua.edu.cn/simple; \ + else \ + uv pip install -e .; \ + fi # Copy rest of application code COPY api ./api