HarshitaSuri commited on
Commit
27dcc0b
·
verified ·
1 Parent(s): a30393c

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +9 -7
dockerfile CHANGED
@@ -1,23 +1,25 @@
1
- # Base image
2
  FROM python:3.10-slim
3
 
4
- # Install system dependencies
5
- RUN apt-get update && apt-get install -y \
 
 
 
6
  tesseract-ocr \
7
  poppler-utils \
8
- libgl1 \
 
 
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Set up work directory
12
  WORKDIR /app
13
 
14
- # Copy files
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
  COPY app.py .
19
 
20
- # Expose the Gradio app
21
  EXPOSE 7860
22
 
23
  CMD ["python", "app.py"]
 
 
1
  FROM python:3.10-slim
2
 
3
+ # Set noninteractive frontend to avoid prompts
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
+ # Install system-level packages
7
+ RUN apt-get update && apt-get install -y --no-install-recommends \
8
  tesseract-ocr \
9
  poppler-utils \
10
+ libglib2.0-0 \
11
+ libsm6 \
12
+ libxext6 \
13
+ libxrender-dev \
14
  && rm -rf /var/lib/apt/lists/*
15
 
 
16
  WORKDIR /app
17
 
 
18
  COPY requirements.txt .
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
  COPY app.py .
22
 
 
23
  EXPOSE 7860
24
 
25
  CMD ["python", "app.py"]