From 776de685d076cc60aabef97fcd9f345faded4e4a Mon Sep 17 00:00:00 2001 From: nfel Date: Tue, 4 Aug 2026 22:48:06 +0330 Subject: [PATCH] Install uv via curl instead of pip in builder stage pip install uv tries to fetch from PyPI which is unreachable from our VPS. Using curl installer directly avoids any PyPI dependency. Co-authored-by: Qwen-Coder --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8fb762b..9304ddb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,9 @@ ARG BASE_IMAGE=python:3.11-slim # ── Stage 1: dependency resolver ───────────────────────────────────────────── FROM python:3.11-slim AS builder -RUN pip install --no-cache-dir uv==0.11.31 +# Install uv via curl (not pip) to avoid any PyPI/network dependency +RUN curl -LsSf https://astral.sh/uv/install.sh | \ + UV_INSTALL_DIR=/usr/local sh WORKDIR /app @@ -20,7 +22,7 @@ ENV UV_INDEX_URL="http://pypi.reg.darano.ir/simple/" COPY pyproject.toml uv.lock* ./ -RUN uv sync --frozen --no-dev --no-install-project +RUN /usr/local/uv/bin/uv sync --frozen --no-dev --no-install-project # ── Stage 2a: admin runtime (python:3.11-slim, no Chrome needed) ────────────── FROM ${BASE_IMAGE} AS admin