Spaces:
Runtime error
Runtime error
File size: 663 Bytes
4aa5de4 1bca1fa e41bcfc 4aa5de4 1bca1fa 4aa5de4 555093f afbb1ee e41bcfc afbb1ee 0e1eb0a 4aa5de4 |
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 |
# Use an official Python runtime as a parent image
FROM python:3.12
ENV PIP_ROOT_USER_ACTION=ignore
# Set the working directory in the container
WORKDIR $HOME/app
# Install system dependencies
RUN apt-get update && apt-get install -y
RUN apt-get install -y tesseract-ocr
RUN apt-get install -y libtesseract-dev
RUN apt-get install -y libgl1-mesa-glx
RUN apt-get install -y libglib2.0-0
RUN pip install --upgrade pip
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy your app code
COPY app.py ./
# Expose the port your app listens on
EXPOSE 7860
# Run app.py when the container launches
CMD ["python", "app.py"]
|