Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -14
Dockerfile
CHANGED
@@ -1,24 +1,21 @@
|
|
1 |
-
|
2 |
-
FROM python:3.10-slim
|
3 |
|
4 |
-
# Install system dependencies
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
tesseract-ocr \
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
-
# Set
|
14 |
WORKDIR /app
|
15 |
|
16 |
-
# Copy
|
17 |
-
COPY
|
18 |
-
COPY requirements.txt .
|
19 |
|
20 |
-
# Install Python
|
21 |
RUN pip install --no-cache-dir -r requirements.txt
|
22 |
|
23 |
-
# Run the
|
24 |
CMD ["python", "app.py"]
|
|
|
1 |
+
FROM python:3.9
|
|
|
2 |
|
3 |
+
# Install system dependencies
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
tesseract-ocr \
|
6 |
+
libtesseract-dev \
|
7 |
+
libleptonica-dev \
|
8 |
+
poppler-utils \
|
9 |
+
&& rm -rf /var/lib/apt/lists/*
|
|
|
10 |
|
11 |
+
# Set work directory
|
12 |
WORKDIR /app
|
13 |
|
14 |
+
# Copy code
|
15 |
+
COPY . /app
|
|
|
16 |
|
17 |
+
# Install Python dependencies
|
18 |
RUN pip install --no-cache-dir -r requirements.txt
|
19 |
|
20 |
+
# Run the app
|
21 |
CMD ["python", "app.py"]
|