ajout de la <dockerisation>
This commit is contained in:
parent
e6c52820cd
commit
1671975129
2 changed files with 15 additions and 0 deletions
7
Dockerfile
Normal file
7
Dockerfile
Normal 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
8
docker-compose.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue