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

Use prebuilt dlib base image to prevent timeout

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -1,14 +1,9 @@
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
@@ -16,4 +11,5 @@ RUN pip install -r requirements.txt
16
  # Copy your app
17
  COPY . .
18
 
 
19
  CMD ["python", "app.py"]
 
1
+ FROM deeppomf/dlib-opencv:latest
 
 
 
 
 
2
 
3
  # Set working directory
4
  WORKDIR /app
5
 
6
+ # Copy and install Python dependencies
7
  COPY requirements.txt .
8
  RUN pip install --upgrade pip
9
  RUN pip install -r requirements.txt
 
11
  # Copy your app
12
  COPY . .
13
 
14
+ # Launch your app
15
  CMD ["python", "app.py"]