prashantmatlani commited on
Commit
e6c87ac
·
verified ·
1 Parent(s): 27f4d1e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -2,10 +2,11 @@ FROM python:3.11
2
 
3
  WORKDIR /code
4
 
5
- # Install system dependencies for PDF processing
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
- libgl1-mesa-glx \
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  COPY ./requirements.txt /code/requirements.txt
@@ -13,5 +14,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
 
14
  COPY . .
15
 
16
- # HF Spaces expects the app on port 7860
17
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /code
4
 
5
+ # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
+ libgl1 \
9
+ libglib2.0-0 \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  COPY ./requirements.txt /code/requirements.txt
 
14
 
15
  COPY . .
16
 
 
17
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]