Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -4,6 +4,7 @@ FROM python:3.9-slim
|
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
tesseract-ocr \
|
6 |
libtesseract-dev \
|
|
|
7 |
&& rm -rf /var/lib/apt/lists/*
|
8 |
|
9 |
# Install Python dependencies
|
@@ -13,5 +14,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
13 |
# Copy the application code
|
14 |
COPY . .
|
15 |
|
|
|
|
|
|
|
16 |
# Set the command to run the app
|
17 |
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
tesseract-ocr \
|
6 |
libtesseract-dev \
|
7 |
+
libleptonica-dev \
|
8 |
&& rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
# Install Python dependencies
|
|
|
14 |
# Copy the application code
|
15 |
COPY . .
|
16 |
|
17 |
+
# Set the Tesseract executable path explicitly
|
18 |
+
ENV TESSDATA_PREFIX=/usr/share/tesseract-ocr/4.00/tessdata
|
19 |
+
|
20 |
# Set the command to run the app
|
21 |
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|