File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,8 +13,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313# Copy requirements
1414COPY requirements-backend.txt .
1515
16+ # Make pip more resilient to transient package index/network hiccups in CI.
17+ ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
18+ PIP_DEFAULT_TIMEOUT=120
19+
1620# Install Python dependencies
17- RUN pip install --no-cache-dir -r requirements-backend.txt
21+ RUN pip install --no-cache-dir \
22+ --retries 10 \
23+ --timeout 120 \
24+ --prefer-binary \
25+ -r requirements-backend.txt
1826
1927# Copy application files
2028COPY docs/archive/legacy/code/fl_metrics_translator.py ./fl_metrics_translator.py
Original file line number Diff line number Diff line change @@ -16,8 +16,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1616# Copy requirements first (leverage layer caching)
1717COPY requirements-backend.txt .
1818
19+ # Make pip more resilient to transient package index/network hiccups in CI.
20+ ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
21+ PIP_DEFAULT_TIMEOUT=120
22+
1923# Install Python dependencies with optimization flags
2024RUN pip install --no-cache-dir --user --no-warn-script-location \
25+ --retries 10 \
26+ --timeout 120 \
27+ --prefer-binary \
2128 --compile \
2229 -r requirements-backend.txt
2330
You can’t perform that action at this time.
0 commit comments