-
Notifications
You must be signed in to change notification settings - Fork 1
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
5304d6e
commit 312bae9
Showing
16 changed files
with
246 additions
and
230 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
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 |
---|---|---|
@@ -1,11 +1,22 @@ | ||
# Utiliser une image de base Python | ||
FROM python:3.12 | ||
|
||
# Définir le répertoire de travail | ||
WORKDIR /app | ||
|
||
# Installer les dépendances système nécessaires | ||
RUN apt-get update && \ | ||
apt-get install -y python3-distutils gcc g++ && \ | ||
apt-get clean | ||
|
||
# Copier le fichier requirements.txt | ||
COPY ./requirements.txt /app/requirements.txt | ||
|
||
# Installer les dépendances Python | ||
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt | ||
|
||
# Copier le reste de l'application | ||
COPY . . | ||
|
||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] | ||
# Commande par défaut pour exécuter l'application (ajustez selon vos besoins) | ||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.