Rename requirements.txt to Dockerfile
Browse files- Dockerfile +11 -0
- requirements.txt +0 -4
Dockerfile
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
+
RUN apt-get update && \
|
| 4 |
+
apt-get install -y tesseract-ocr libgl1-mesa-glx && \
|
| 5 |
+
pip install --no-cache-dir opencv-python-headless pytesseract numpy fpdf
|
| 6 |
+
|
| 7 |
+
COPY app.py /code/app.py
|
| 8 |
+
|
| 9 |
+
WORKDIR /code
|
| 10 |
+
|
| 11 |
+
CMD ["python", "app.py"]
|
requirements.txt
DELETED
|
@@ -1,4 +0,0 @@
|
|
| 1 |
-
opencv-python-headless
|
| 2 |
-
pytesseract
|
| 3 |
-
numpy
|
| 4 |
-
fpdf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|