fix(ci): устойчивость сборки worker-indexer к медленному/флоки pypi
Some checks failed
Deploy / deploy (push) Failing after 19m48s
Some checks failed
Deploy / deploy (push) Failing after 19m48s
Деплой падал: buildx с холодным кэшем делает полный pip install, а канал до pypi.org медленный и с таймаутами → сборка не завершалась. Добавил --timeout 120 --retries 10. Первый успешный build также прогреет buildx-кэш, дальше пересборки по коду будут быстрыми (только слой COPY). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -13,7 +13,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
# --timeout/--retries: канал до pypi медленный и флоки, без этого сборка падает
|
||||||
|
RUN pip install --no-cache-dir --timeout 120 --retries 10 -r requirements.txt
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user