Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +16 -4
Dockerfile
CHANGED
@@ -1,10 +1,22 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
4 |
|
5 |
-
|
|
|
6 |
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
|
10 |
CMD ["streamlit", "run", "app.py", "--host" , "0.0.0.0" , "--server.port", "7860"]
|
|
|
1 |
+
FROM python:3.11
|
2 |
|
3 |
+
RUN apt-get update \
|
4 |
+
&& apt-get install -y tesseract-ocr \
|
5 |
+
&& apt-get install -y libtesseract-dev \
|
6 |
+
&& apt-get clean \
|
7 |
+
&& rm -rf /var/lib/apt/lists/*
|
8 |
|
9 |
+
# Set the working directory in the container
|
10 |
+
WORKDIR /app
|
11 |
|
12 |
+
# Copy your application files into the container
|
13 |
+
COPY . /app
|
14 |
+
|
15 |
+
# Install Python dependencies
|
16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
+
|
18 |
+
# Set the Tesseract path for pytesseract
|
19 |
+
ENV TESSDATA_PREFIX /usr/share/
|
20 |
|
21 |
|
22 |
CMD ["streamlit", "run", "app.py", "--host" , "0.0.0.0" , "--server.port", "7860"]
|