Add : Front end
This commit is contained in:
@@ -1,17 +1,12 @@
|
|||||||
FROM python:3.9-slim
|
FROM python:3.9-slim
|
||||||
|
|
||||||
# On force la racine du projet comme répertoire de travail
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# On installe les dépendances
|
|
||||||
COPY app/requirements.txt .
|
COPY app/requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# On copie TOUT le contenu du dossier local app dans le WORKDIR (/app)
|
|
||||||
COPY app/ .
|
COPY app/ .
|
||||||
|
|
||||||
# Exposer le port
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
# On lance avec le chemin complet explicite
|
|
||||||
CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||||
Reference in New Issue
Block a user