Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use Hugging Face’s OCR base image (includes Tesseract)
|
2 |
+
FROM ghcr.io/huggingface/spaces-sdk:ocr
|
3 |
+
|
4 |
+
# Copy dependencies and install
|
5 |
+
COPY requirements.txt .
|
6 |
+
RUN pip install -r requirements.txt
|
7 |
+
|
8 |
+
# Copy app code
|
9 |
+
COPY app.py .
|
10 |
+
|
11 |
+
# Launch the Streamlit app
|
12 |
+
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|