backend-h / Dockerfile
enzo-09's picture
Initial commit with Flask API and Docker setup
28da7de
raw
history blame
497 Bytes
# Utiliser une image Python officielle comme base
FROM python:3.9-slim
# Définir le répertoire de travail
WORKDIR /app
# Copier les fichiers requirements.txt (à créer) et installer les dépendances
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copier tout le code de l'application dans le conteneur
COPY . .
# Exposer le port sur lequel l'application va tourner (5000 dans votre cas)
EXPOSE 5000
# Commande pour lancer l'application
CMD ["python", "app.py"]