18 lines
297 B
Docker
18 lines
297 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Installer dépendances
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copier scripts
|
|
COPY run.py .
|
|
COPY entrypoint.sh .
|
|
|
|
# Rendre le script exécutable
|
|
RUN chmod +x entrypoint.sh
|
|
|
|
# Entrypoint
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|