assile commited on
Commit
ed3adc8
·
verified ·
1 Parent(s): 996f054

Upload dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +19 -0
dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Installer les dépendances système
6
+ RUN apt-get update && apt-get install -y \
7
+ ffmpeg \
8
+ libsm6 \
9
+ libxext6 \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Copier les fichiers
13
+ COPY requirements.txt .
14
+ COPY app.py .
15
+
16
+ # Installer les dépendances Python
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ CMD ["python", "app.py"]