xxparthparekhxx commited on
Commit
b8d1452
·
1 Parent(s): 6c2294d

fix requirements

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -3
  2. requirements.txt +2 -2
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.8-slim
2
 
3
  WORKDIR /app
4
 
@@ -12,9 +12,9 @@ RUN apt-get update && apt-get install -y \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
  COPY requirements.txt .
 
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  COPY . .
18
 
19
-
20
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "4"]
 
1
+ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
  COPY requirements.txt .
15
+
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
  COPY . .
19
 
20
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
 
requirements.txt CHANGED
@@ -6,8 +6,8 @@ opencv-python-headless==4.5.5.64
6
  moviepy==1.0.3
7
 
8
  nudenet==3.4.2
9
- numpy==1.26.4 # FIXES the ABI error
10
 
11
  python-multipart==0.0.5
12
  requests==2.26.0
13
- aiofiles==0.8.0 # FIXES StaticFiles error
 
6
  moviepy==1.0.3
7
 
8
  nudenet==3.4.2
9
+ numpy==1.26.4
10
 
11
  python-multipart==0.0.5
12
  requests==2.26.0
13
+ aiofiles==0.8.0