Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -2,19 +2,17 @@ FROM python:3.9-slim
|
|
2 |
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
-
# Install tesseract and
|
6 |
RUN apt-get update && apt-get install -y \
|
7 |
tesseract-ocr \
|
8 |
libtesseract-dev \
|
9 |
libleptonica-dev \
|
10 |
-
poppler-utils \
|
11 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
-
#
|
14 |
COPY requirements.txt .
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
|
17 |
-
# Copy app code
|
18 |
COPY app.py .
|
19 |
|
20 |
EXPOSE 7860
|
@@ -22,3 +20,4 @@ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0
|
|
22 |
|
23 |
|
24 |
|
|
|
|
2 |
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
+
# Install tesseract and other dependencies
|
6 |
RUN apt-get update && apt-get install -y \
|
7 |
tesseract-ocr \
|
8 |
libtesseract-dev \
|
9 |
libleptonica-dev \
|
|
|
10 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
+
# Copy files and install Python packages
|
13 |
COPY requirements.txt .
|
14 |
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
|
|
|
16 |
COPY app.py .
|
17 |
|
18 |
EXPOSE 7860
|
|
|
20 |
|
21 |
|
22 |
|
23 |
+
|