neerajkalyank commited on
Commit
2deee95
1 Parent(s): 5dedbe7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -10
Dockerfile CHANGED
@@ -1,19 +1,17 @@
1
- # Use an official Python image from the Docker Hub
2
  FROM python:3.10-slim
3
 
4
- # Copy setup.sh and give execute permission
5
- COPY setup.sh /setup.sh
6
- RUN chmod +x /setup.sh
 
7
 
8
- # Run setup.sh to install system dependencies
9
- RUN /setup.sh
10
-
11
- # Copy the requirements file and install Python dependencies
12
  COPY requirements.txt .
13
  RUN pip install -r requirements.txt
14
 
15
- # Copy the entire app code into the Docker container
16
  COPY . .
17
 
18
- # Command to run the Gradio app
19
  CMD ["python3", "app.py"]
 
1
+ # Use an official Python image from Docker Hub
2
  FROM python:3.10-slim
3
 
4
+ # Update and install Tesseract OCR
5
+ RUN apt-get update && \
6
+ apt-get install -y tesseract-ocr && \
7
+ apt-get clean
8
 
9
+ # Copy requirements.txt and install Python dependencies
 
 
 
10
  COPY requirements.txt .
11
  RUN pip install -r requirements.txt
12
 
13
+ # Copy the application code
14
  COPY . .
15
 
16
+ # Run the Gradio app
17
  CMD ["python3", "app.py"]