chore(docker): update Dockerfile and added docker-entrypoint.sh

This commit is contained in:
etienne-hd
2026-03-07 16:38:42 +01:00
parent f2a63ec7ff
commit e60ad25035
2 changed files with 12 additions and 1 deletions

View File

@@ -3,8 +3,12 @@ FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
COPY lbc-finder /app
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["python", "main.py"]

7
docker-entrypoint.sh Normal file
View File

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