AnnSankavi commited on
Commit
cd6b5c6
·
1 Parent(s): 6bc00f6
Files changed (2) hide show
  1. Dockerfile +0 -16
  2. requirements.txt +1 -12
Dockerfile CHANGED
@@ -1,26 +1,11 @@
1
  FROM python:3.11-slim
2
 
3
- <<<<<<< HEAD
4
- <<<<<<< HEAD
5
- RUN apt-get update && apt-get install -y \
6
- build-essential cmake \
7
- && rm -rf /var/lib/apt/lists/*
8
-
9
- WORKDIR /app
10
- COPY . /app
11
-
12
- RUN pip install --upgrade pip && pip install -r requirements.txt
13
-
14
- ENV PORT=7860
15
- =======
16
- =======
17
  # Keep dlib builds from using too much RAM on small builders.
18
  ENV CMAKE_BUILD_PARALLEL_LEVEL=1 \
19
  MAKEFLAGS="-j1" \
20
  DLIB_USE_CUDA=0 \
21
  DLIB_NO_GUI_SUPPORT=1
22
 
23
- >>>>>>> f36a9bc11a01f4f8114498d491819a9c5d2cc9ca
24
  # Install system dependencies for dlib / face_recognition
25
  RUN apt-get update && apt-get install -y \
26
  build-essential \
@@ -45,5 +30,4 @@ COPY . /app
45
 
46
  ENV PORT=7860
47
 
48
- >>>>>>> b17c4a8b3ba848593384d3c1370bb9feffbdb037
49
  CMD ["python", "main.py"]
 
1
  FROM python:3.11-slim
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  # Keep dlib builds from using too much RAM on small builders.
4
  ENV CMAKE_BUILD_PARALLEL_LEVEL=1 \
5
  MAKEFLAGS="-j1" \
6
  DLIB_USE_CUDA=0 \
7
  DLIB_NO_GUI_SUPPORT=1
8
 
 
9
  # Install system dependencies for dlib / face_recognition
10
  RUN apt-get update && apt-get install -y \
11
  build-essential \
 
30
 
31
  ENV PORT=7860
32
 
 
33
  CMD ["python", "main.py"]
requirements.txt CHANGED
@@ -1,20 +1,9 @@
1
- <<<<<<< HEAD
2
  fastapi>=0.109.0
3
  uvicorn>=0.27.0
4
- # face_recognition>=1.3.0 (Installed manually with --no-deps to use dlib-bin)
5
  face_recognition_models>=0.3.0
6
  numpy>=1.24.0
7
  python-multipart>=0.0.6
8
  httpx>=0.26.0
9
  python-dotenv>=1.0.0
10
  pillow>=10.0.0
11
- =======
12
- fastapi
13
- uvicorn
14
- face_recognition
15
- face_recognition_models
16
- numpy
17
- python-multipart
18
- pillow
19
- python-dotenv
20
- >>>>>>> b17c4a8b3ba848593384d3c1370bb9feffbdb037
 
 
1
  fastapi>=0.109.0
2
  uvicorn>=0.27.0
3
+ face_recognition>=1.3.0
4
  face_recognition_models>=0.3.0
5
  numpy>=1.24.0
6
  python-multipart>=0.0.6
7
  httpx>=0.26.0
8
  python-dotenv>=1.0.0
9
  pillow>=10.0.0