mirror of
https://github.com/etienne-hd/lbc-finder.git
synced 2026-07-11 15:26:18 +02:00
chore(docker): migrate container build to uv and remove legacy requirements file
This commit is contained in:
+4
-4
@@ -1,9 +1,9 @@
|
|||||||
FROM python:3.11-slim
|
FROM ghcr.io/astral-sh/uv:python3.10-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY pyproject.toml uv.lock ./
|
||||||
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
|
RUN uv sync --locked --no-dev
|
||||||
|
|
||||||
COPY lbc-finder /app
|
COPY lbc-finder /app
|
||||||
|
|
||||||
@@ -11,4 +11,4 @@ COPY docker-entrypoint.sh /
|
|||||||
RUN chmod +x /docker-entrypoint.sh
|
RUN chmod +x /docker-entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
CMD ["python", "main.py"]
|
CMD ["uv", "run", "main.py"]
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ -e config/requirements.txt ]
|
if [ -e config/requirements.txt ]
|
||||||
then
|
then
|
||||||
pip install --no-cache-dir -r config/requirements.txt
|
uv add -r config/requirements.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
@@ -1 +0,0 @@
|
|||||||
lbc==1.1.2
|
|
||||||
Reference in New Issue
Block a user