Spaces:
Running

iman1377 commited on
Commit
dc93ea4
·
verified ·
1 Parent(s): 77f7d36

Update app/Dockerfile

Browse files
Files changed (1) hide show
  1. app/Dockerfile +18 -12
app/Dockerfile CHANGED
@@ -1,12 +1,18 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /app
4
-
5
- COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt
7
-
8
- COPY app ./app
9
-
10
- EXPOSE 7860
11
-
12
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # نصب وابستگی‌های سیستمی مورد نیاز OpenCV
6
+ RUN apt-get update && apt-get install -y \
7
+ libgl1 \
8
+ libglib2.0-0 \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ COPY . .
15
+
16
+ EXPOSE 7860
17
+
18
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]