Stroke-ia commited on
Commit
600e7ec
·
verified ·
1 Parent(s): 56632ca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -2,18 +2,17 @@ FROM python:3.9
2
 
3
  WORKDIR /code
4
 
5
- # Installer dépendances système nécessaires pour OpenCV
6
  RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 && rm -rf /var/lib/apt/lists/*
7
 
8
  # Installer dépendances Python
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
- # Copier ton API
13
  COPY api.py .
 
14
 
15
- # Exposer le port utilisé par Hugging Face
16
  EXPOSE 7860
17
 
18
- # Lancer FastAPI avec uvicorn
19
  CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /code
4
 
5
+ # Installer dépendances système
6
  RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 && rm -rf /var/lib/apt/lists/*
7
 
8
  # Installer dépendances Python
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
+ # Copier l'API + le modèle
13
  COPY api.py .
14
+ COPY best.pt .
15
 
 
16
  EXPOSE 7860
17
 
 
18
  CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]