Loren commited on
Commit
466cd1f
·
verified ·
1 Parent(s): 68833e4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -17
Dockerfile CHANGED
@@ -1,17 +1,15 @@
1
- # Utiliser Python 3.11 slim
2
- FROM python:3.11-slim
3
-
4
- WORKDIR /app
5
-
6
- # Copier le code et la base SQLite
7
- COPY requirements.txt .
8
- COPY app ./app
9
-
10
- # Installer les dépendances
11
- RUN pip install --no-cache-dir -r requirements.txt
12
-
13
- # Exposer le port FastAPI
14
- EXPOSE 8000
15
-
16
- # Lancer FastAPI
17
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
 
1
+ # Utiliser Python 3.11 slim
2
+ FROM python:3.11-slim
3
+
4
+ WORKDIR /app
5
+
6
+ # Copier le code et la base SQLite
7
+ COPY requirements.txt .
8
+ COPY app ./app
9
+
10
+ # Installer les dépendances
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+
14
+ # Lancer FastAPI
15
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]