Spaces:
Runtime error
Runtime error
File size: 632 Bytes
090fcce 47b3e80 c56a42b fd2c31d 090fcce 47b3e80 fd2c31d 090fcce 47b3e80 090fcce b960582 6420234 c766d7b 6420234 090fcce fd2c31d eadeada |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM python:3.11
RUN apt-get update && apt-get install -y tesseract-ocr
# Set the working directory in the container
WORKDIR /app
# Copy your application files into the container
COPY . /app
# Install Python dependencies
RUN pip install -r requirements.txt
RUN mkdir -p /app/flagged && chmod 777 /app/flagged
ENV MPLCONFIGDIR=/app/matplotlib-config
ENV MATPLOTLIBDATA=/app/matplotlib-data
RUN mkdir -p $MPLCONFIGDIR && chmod 777 $MPLCONFIGDIR
RUN mkdir -p $MATPLOTLIBDATA && chmod 777 $MATPLOTLIBDATA
# Set the Tesseract path for pytesseract
ENV TESSDATA_PREFIX /usr/share/
CMD ["python", "app.py", "--server.port" , "7860"] |