Fix pip build: use PyPI via VPN proxy instead of Arvan mirror
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+4
-2
@@ -25,9 +25,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
# pip از طریق پروکسی VPN (HTTP_PROXY) به PyPI رسمی — میرور آروان گاهی timeout میدهد
|
||||
RUN pip install --no-cache-dir \
|
||||
--index-url https://mirror.arvancloud.ir/pypi/simple \
|
||||
--trusted-host mirror.arvancloud.ir \
|
||||
--default-timeout=300 \
|
||||
--retries 10 \
|
||||
--index-url https://pypi.org/simple \
|
||||
-r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user