HarshitaSuri commited on
Commit
a14039a
·
verified ·
1 Parent(s): 297c5a4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -1,10 +1,14 @@
1
  FROM python:3.10-slim
2
 
3
- # Install system-level dependencies
 
4
  RUN apt-get update && apt-get install -y \
5
  tesseract-ocr \
6
  poppler-utils \
7
- libgl1 \
 
 
 
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
  WORKDIR /app
@@ -16,4 +20,4 @@ COPY app.py .
16
 
17
  EXPOSE 7860
18
 
19
- CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+
5
  RUN apt-get update && apt-get install -y \
6
  tesseract-ocr \
7
  poppler-utils \
8
+ libglib2.0-0 \
9
+ libsm6 \
10
+ libxext6 \
11
+ libxrender-dev \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
  WORKDIR /app
 
20
 
21
  EXPOSE 7860
22
 
23
+ CMD ["python", "-u", "app.py"]