mirror of
https://github.com/etienne-hd/lbc-finder.git
synced 2026-04-30 20:55:36 +02:00
chore(docker): migrate container build to uv and remove legacy requirements file
This commit is contained in:
@@ -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"]
|
||||
@@ -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 "$@"
|
||||
@@ -1 +0,0 @@
|
||||
lbc==1.1.2
|
||||
Reference in New Issue
Block a user