# Use the official Python image as base FROM python:3.12 # Set the working directory in the container WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app # Install any dependencies RUN pip install --no-cache-dir flask pytesseract pillow requests RUN sudo apt update RUN sudo apt install tesseract-ocr RUN sudo apt install libtesseract-dev # Expose the port the app runs on EXPOSE # Run the Flask app CMD ["flask", "run", "--host", "0.0.0.0", "--port", "7860"]