Spaces:
Sleeping
Sleeping
neerajkalyank
commited on
Commit
•
2deee95
1
Parent(s):
5dedbe7
Update Dockerfile
Browse files- Dockerfile +8 -10
Dockerfile
CHANGED
@@ -1,19 +1,17 @@
|
|
1 |
-
# Use an official Python image from
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
-
#
|
5 |
-
|
6 |
-
|
|
|
7 |
|
8 |
-
#
|
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
|
16 |
COPY . .
|
17 |
|
18 |
-
#
|
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"]
|