amanSethSmava commited on
Commit
3eddd42
·
1 Parent(s): d8b5ffa

Use prebuilt dlib base image to prevent timeout

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -7
  2. requirements.txt +0 -1
Dockerfile CHANGED
@@ -1,21 +1,19 @@
1
- FROM python:3.10
2
 
 
3
  RUN apt-get update && apt-get install -y \
4
- cmake \
5
- libboost-all-dev \
6
- build-essential \
7
- python3-dev \
8
- libopenblas-dev \
9
- liblapack-dev \
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
13
  WORKDIR /app
14
 
 
15
  COPY requirements.txt .
16
  RUN pip install --upgrade pip
17
  RUN pip install -r requirements.txt
18
 
 
19
  COPY . .
20
 
21
  CMD ["python", "app.py"]
 
1
+ FROM danielgatis/dlib:python3.10
2
 
3
+ # Install any extra system dependencies (optional)
4
  RUN apt-get update && apt-get install -y \
 
 
 
 
 
 
5
  git \
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
+ # Set working directory
9
  WORKDIR /app
10
 
11
+ # Copy and install dependencies
12
  COPY requirements.txt .
13
  RUN pip install --upgrade pip
14
  RUN pip install -r requirements.txt
15
 
16
+ # Copy your app
17
  COPY . .
18
 
19
  CMD ["python", "app.py"]
requirements.txt CHANGED
@@ -7,7 +7,6 @@ clip @ git+https://github.com/openai/CLIP.git@a1d071733d7111c9c014f024669f959182
7
  contourpy==1.2.0
8
  cycler==0.12.1
9
  dill==0.3.6
10
- dlib==19.24.1
11
  docker-pycreds==0.4.0
12
  face_alignment==1.3.4
13
  filelock==3.13.1
 
7
  contourpy==1.2.0
8
  cycler==0.12.1
9
  dill==0.3.6
 
10
  docker-pycreds==0.4.0
11
  face_alignment==1.3.4
12
  filelock==3.13.1