mirror of
https://github.com/etienne-hd/lbc-finder.git
synced 2026-04-24 01:45:36 +02:00
chore(docker): update Dockerfile and added docker-entrypoint.sh
This commit is contained in:
@@ -3,8 +3,12 @@ FROM python:3.11-slim
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
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 lbc-finder /app
|
||||||
|
|
||||||
|
COPY docker-entrypoint.sh /
|
||||||
|
RUN chmod +x /docker-entrypoint.sh
|
||||||
|
|
||||||
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
CMD ["python", "main.py"]
|
CMD ["python", "main.py"]
|
||||||
7
docker-entrypoint.sh
Normal file
7
docker-entrypoint.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
if [ -e requirements.txt ]
|
||||||
|
then
|
||||||
|
pip install --no-cache-dir -r requirements.txt
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "$@"
|
||||||
Reference in New Issue
Block a user