hacky fix for bad poetry marker in lock file

This commit is contained in:
msramalho
2025-05-05 11:40:18 +01:00
parent c42889d79a
commit 019bfefd8b
2 changed files with 6 additions and 3 deletions

View File

@@ -10,8 +10,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir poetry
COPY ../../pyproject.toml ../../poetry.lock ../../README.md ./
RUN poetry install --with web --no-interaction --no-ansi --no-cache
# sed is unfortunately needed to fix a bug comming from vk-url-scraper that comes from brotli and the fact bk-ul-scraper can no longer be published to pypi
RUN sed -i 's/platform_python_implementation >= \\"CPython\\"/platform_python_implementation == \\"CPython\\"/g' poetry.lock && \
poetry install --with web --no-interaction --no-ansi --no-cache
# Copy the application code and configurations
COPY ../../app ./app/