gopichandra commited on
Commit
92e13ee
·
verified ·
1 Parent(s): edd207e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -8
Dockerfile CHANGED
@@ -1,25 +1,24 @@
1
- # Use Python 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
  libglib2.0-0 \
8
  libsm6 \
9
  libxext6 \
10
- libxrender-dev \
11
- && apt-get clean \
12
- && rm -rf /var/lib/apt/lists/*
13
 
14
- # Set work directory
15
  WORKDIR /app
16
 
17
- # Copy code
18
  COPY app.py .
19
  COPY requirements.txt .
20
 
21
  # Install Python packages
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
24
- # Run the app
25
  CMD ["python", "app.py"]
 
1
+ # Base image
2
  FROM python:3.10-slim
3
 
4
+ # Install system dependencies including Tesseract
5
  RUN apt-get update && apt-get install -y \
6
  tesseract-ocr \
7
  libglib2.0-0 \
8
  libsm6 \
9
  libxext6 \
10
+ libxrender1 \
11
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
 
12
 
13
+ # Set working directory
14
  WORKDIR /app
15
 
16
+ # Copy files
17
  COPY app.py .
18
  COPY requirements.txt .
19
 
20
  # Install Python packages
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
+ # Run the Gradio app
24
  CMD ["python", "app.py"]