tony133777 commited on
Commit
f9a2e3e
·
verified ·
1 Parent(s): c3e8d18

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -14
Dockerfile CHANGED
@@ -1,22 +1,26 @@
1
  FROM python:3.9-slim
2
 
3
- # Copy the wheel file
4
- COPY dlib-19.24.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl /app/dlib_whl/
 
 
 
 
 
 
 
5
 
6
- # Install the wheel
7
- RUN pip install /app/dlib_whl/dlib-19.24.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
8
-
9
- # Copy requirements file for other dependencies
10
- COPY requirements.txt /app/requirements.txt
11
 
12
- # Install other dependencies
13
- RUN pip install --no-cache-dir -r /app/requirements.txt
14
 
15
- # Copy the application code
16
- COPY . /app
17
 
18
- # Set working directory
19
- WORKDIR /app
20
 
21
- # Run the application
22
  CMD ["python", "app.py"]
 
1
  FROM python:3.9-slim
2
 
3
+ # Install system dependencies required for dlib
4
+ RUN apt-get update && apt-get install -y \
5
+ build-essential \
6
+ cmake \
7
+ libopenblas-dev \
8
+ liblapack-dev \
9
+ libx11-dev \
10
+ libgtk-3-dev \
11
+ && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Set working directory
14
+ WORKDIR /code
 
 
 
15
 
16
+ # Copy requirements file
17
+ COPY requirements.txt .
18
 
19
+ # Install Python dependencies
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
 
22
+ # Copy your app code
23
+ COPY . .
24
 
25
+ # Command to run your app (adjust based on your app's entry point)
26
  CMD ["python", "app.py"]