Spaces:
Sleeping
Sleeping
# Use a Python 3.10 runtime | |
FROM python:3.10-slim | |
# Install Tesseract OCR Engine and other required system dependencies | |
# (Keeping this in case you switch back later) | |
RUN apt-get update && apt-get install -y \ | |
tesseract-ocr \ | |
build-essential \ | |
ffmpeg \ | |
libsm6 \ | |
libxext6 \ | |
libgl1 \ | |
libglib2.0-0 \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Set the working directory | |
WORKDIR /code | |
# Copy and install Python packages | |
COPY ./requirements.txt /code/requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
# Copy the rest of the application code | |
COPY . /code/ | |
# Command to run your ORIGINAL app.py file | |
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] | |