Spaces:
Configuration error
Configuration error
Update Dockerfile
Browse files- Dockerfile +7 -8
Dockerfile
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
WORKDIR /app
|
| 6 |
-
COPY
|
| 7 |
-
RUN pip install --no-cache-dir -
|
| 8 |
-
COPY
|
| 9 |
-
EXPOSE 7860
|
| 10 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
FROM python:3.10
|
| 2 |
+
|
| 3 |
+
RUN apt-get update && apt-get install -y tesseract-ocr && rm -rf /var/lib/apt/lists/*
|
| 4 |
+
|
| 5 |
WORKDIR /app
|
| 6 |
+
COPY requirements.txt .
|
| 7 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
+
COPY . .
|
|
|
|
| 9 |
CMD ["python", "app.py"]
|