chore(docker): migrate container build to uv and remove legacy requirements file

This commit is contained in:
etienne-hd
2026-04-29 18:42:26 +02:00
parent be6337684c
commit ccc0448241
3 changed files with 5 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
FROM python:3.11-slim
FROM ghcr.io/astral-sh/uv:python3.10-alpine
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
COPY pyproject.toml uv.lock ./
RUN uv sync --locked --no-dev
COPY lbc-finder /app
@@ -11,4 +11,4 @@ COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["python", "main.py"]
CMD ["uv", "run", "main.py"]

View File

@@ -1,7 +1,7 @@
#!/bin/sh
if [ -e config/requirements.txt ]
then
pip install --no-cache-dir -r config/requirements.txt
uv add -r config/requirements.txt
fi
exec "$@"

View File

@@ -1 +0,0 @@
lbc==1.1.2