fix(tradein): гарантировать lxml в backend-образе — bust кэша uv sync + assert import (#2061)
All checks were successful
Deploy Trade-In / changes (push) Successful in 11s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / build-browser (push) Has been skipped
Deploy Trade-In / test (push) Successful in 1m30s
Deploy Trade-In / build-backend (push) Successful in 7m12s
Deploy Trade-In / deploy (push) Successful in 1m19s
All checks were successful
Deploy Trade-In / changes (push) Successful in 11s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / build-browser (push) Has been skipped
Deploy Trade-In / test (push) Successful in 1m30s
Deploy Trade-In / build-backend (push) Successful in 7m12s
Deploy Trade-In / deploy (push) Successful in 1m19s
This commit is contained in:
parent
bcbbb53495
commit
83ae6f8a47
1 changed files with 5 additions and 1 deletions
|
|
@ -20,8 +20,12 @@ RUN pip install --no-cache-dir uv
|
|||
WORKDIR /app
|
||||
|
||||
COPY pyproject.toml ./
|
||||
# NB: команда содержит `import lxml`-assert — это И bust'ит build-cache этого слоя
|
||||
# (защита от stale-кэша, который однажды задеплоил образ без lxml), И валидирует,
|
||||
# что зависимость реально установлена (иначе сборка падает громко, а не в рантайме).
|
||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
uv sync --no-dev
|
||||
uv sync --no-dev \
|
||||
&& /app/.venv/bin/python -c "import lxml; print('lxml', lxml.__version__)"
|
||||
|
||||
COPY app ./app
|
||||
COPY scripts ./scripts
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue