-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0251dc
commit 2cb53af
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Utilise une image de base officielle Python | ||
FROM python:3.12 | ||
|
||
# Définit le répertoire de travail dans le conteneur | ||
WORKDIR /app | ||
|
||
# Copie le fichier de dépendances dans le répertoire de travail | ||
COPY requirements.txt . | ||
|
||
# Installe les dépendances | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Copie l'intégralité du code de l'application dans le répertoire de travail | ||
COPY . . | ||
|
||
# Expose le port sur lequel l'application va tourner | ||
EXPOSE 8000 | ||
|
||
# Commande pour démarrer l'application | ||
CMD ["uvicorn", "app:main:app", "--host", "0.0.0.0", "--port", "8000"] |