Spaces:
Runtime error
Runtime error
Update dockerfile
Browse files- dockerfile +14 -0
dockerfile
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
+
|
| 3 |
+
# Install Tesseract and dependencies
|
| 4 |
+
RUN apt-get update && apt-get install -y tesseract-ocr libtesseract-dev
|
| 5 |
+
|
| 6 |
+
# Install Python dependencies
|
| 7 |
+
COPY requirements.txt .
|
| 8 |
+
RUN pip install -r requirements.txt
|
| 9 |
+
|
| 10 |
+
# Copy application code
|
| 11 |
+
COPY . /app
|
| 12 |
+
WORKDIR /app
|
| 13 |
+
|
| 14 |
+
CMD ["python", "app.py"]
|