Fayza38 commited on
Commit
4ec144d
·
verified ·
1 Parent(s): 5219c22

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -4,11 +4,12 @@ FROM python:3.9
4
  # Set working directory
5
  WORKDIR /code
6
 
7
- # Install system dependencies for OpenCV and MediaPipe
8
- # We replaced 'libgl1-mesa-glx' with 'libgl1' to fix the build error
9
  RUN apt-get update && apt-get install -y \
10
  libgl1 \
11
  libglib2.0-0 \
 
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
  # Copy requirements and install
@@ -18,5 +19,5 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
18
  # Copy the rest of the application
19
  COPY . .
20
 
21
- # Command to run the application (Hugging Face uses port 7860)
22
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
4
  # Set working directory
5
  WORKDIR /code
6
 
7
+ # Install system dependencies
8
+ # Added 'ffmpeg' to the list
9
  RUN apt-get update && apt-get install -y \
10
  libgl1 \
11
  libglib2.0-0 \
12
+ ffmpeg \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
  # Copy requirements and install
 
19
  # Copy the rest of the application
20
  COPY . .
21
 
22
+ # Command to run the application
23
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]