itspiyush commited on
Commit
305d39f
·
verified ·
1 Parent(s): c16d1f9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -4,6 +4,11 @@ FROM python:3.8
4
  ENV VIRTUAL_ENV=/opt/venv
5
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
6
 
 
 
 
 
 
7
  # Create a virtual environment
8
  RUN python -m venv $VIRTUAL_ENV
9
 
@@ -13,8 +18,6 @@ WORKDIR /code
13
  # Upgrade pip to the latest version
14
  RUN pip install --no-cache-dir --upgrade pip
15
 
16
- RUN pip install --no-cache-dir cmake
17
-
18
  # Ensure this COPY command matches the location of the dlib wheel file
19
  COPY ./requirements.txt /code/
20
 
 
4
  ENV VIRTUAL_ENV=/opt/venv
5
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
6
 
7
+ # Install necessary system dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ cmake \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
  # Create a virtual environment
13
  RUN python -m venv $VIRTUAL_ENV
14
 
 
18
  # Upgrade pip to the latest version
19
  RUN pip install --no-cache-dir --upgrade pip
20
 
 
 
21
  # Ensure this COPY command matches the location of the dlib wheel file
22
  COPY ./requirements.txt /code/
23