smishr-18's picture
Update Dockerfile
6420234
raw
history blame contribute delete
632 Bytes
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"]