Spaces:
Sleeping
Sleeping
File size: 734 Bytes
e64dd2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# 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"]
|