mohamedtsou commited on
Commit
23f6338
·
verified ·
1 Parent(s): 55f6fab

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Installer les dépendances système
4
+ RUN apt-get update && apt-get install -y \
5
+ libzbar0 \
6
+ libgl1-mesa-glx \
7
+ libglib2.0-0 \
8
+ libsm6 \
9
+ libxext6 \
10
+ libxrender-dev \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ WORKDIR /app
14
+
15
+ COPY requirements.txt .
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ COPY app.py .
19
+
20
+ EXPOSE 7860
21
+
22
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "app:app"]