arjunbhargav212 commited on
Commit
2bcba00
·
verified ·
1 Parent(s): c1d4505

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile CHANGED
@@ -1,7 +1,18 @@
1
  FROM python:3.10
 
 
 
 
 
 
 
2
  WORKDIR /code
 
3
  COPY ./requirements.txt /code/requirements.txt
4
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
5
  COPY . .
 
6
  EXPOSE 7860
 
7
  CMD ["python", "app.py"]
 
1
  FROM python:3.10
2
+
3
+ # Update apt-get and install system libraries needed for Docling
4
+ RUN apt-get update && apt-get install -y \
5
+ libgl1 \
6
+ libglib2.0-0 \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
  WORKDIR /code
10
+
11
  COPY ./requirements.txt /code/requirements.txt
12
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
+
14
  COPY . .
15
+
16
  EXPOSE 7860
17
+
18
  CMD ["python", "app.py"]