vancyferns commited on
Commit
f8b78df
·
1 Parent(s): 228504f

updated dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,9 +1,10 @@
1
  # Use a lightweight official Python image as the base
2
  FROM python:3.10-slim
3
 
4
- # Install the correct system-level dependencies for OpenCV
5
  RUN apt-get update && apt-get install -y \
6
  libgl1 \
 
7
  libsm6 \
8
  libxext6 \
9
  && rm -rf /var/lib/apt/lists/*
@@ -11,13 +12,13 @@ RUN apt-get update && apt-get install -y \
11
  # Set the working directory inside the container
12
  WORKDIR /app
13
 
14
- # Copy the requirements file from the 'model' directory to the container's working directory
15
  COPY model/requirements.txt .
16
 
17
- # Install the Python dependencies
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
- # Copy the rest of the 'model' directory's contents into the container
21
  COPY model .
22
 
23
  # Expose the port where the Flask API will run
 
1
  # Use a lightweight official Python image as the base
2
  FROM python:3.10-slim
3
 
4
+ # Install system-level dependencies for OpenCV and other packages
5
  RUN apt-get update && apt-get install -y \
6
  libgl1 \
7
+ libglib2.0-0 \
8
  libsm6 \
9
  libxext6 \
10
  && rm -rf /var/lib/apt/lists/*
 
12
  # Set the working directory inside the container
13
  WORKDIR /app
14
 
15
+ # Copy the requirements file from the 'model' directory
16
  COPY model/requirements.txt .
17
 
18
+ # Install Python dependencies
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
+ # Copy the rest of the 'model' directory's contents
22
  COPY model .
23
 
24
  # Expose the port where the Flask API will run