image-to-text-ocr / Dockerfile
KZTech's picture
Create Dockerfile
723f9b2 verified
raw
history blame
336 Bytes
# Use Hugging Face’s OCR base image (includes Tesseract)
FROM ghcr.io/huggingface/spaces-sdk:ocr
# Copy dependencies and install
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy app code
COPY app.py .
# Launch the Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]