ajout de la <dockerisation>

This commit is contained in:
mrtoine 2025-09-20 13:42:09 +02:00
parent e6c52820cd
commit 1671975129
2 changed files with 15 additions and 0 deletions

7
Dockerfile Normal file
View file

@ -0,0 +1,7 @@
from python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8888
CMD ["python", "app.py"]

8
docker-compose.yml Normal file
View file

@ -0,0 +1,8 @@
services:
web:
build: .
ports:
- "8888:8888"
volumes:
- .:/app # Monte ton code en local pour le développement (optionnel)
restart: unless-stopped