# 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 apt update && apt install -y tesseract-ocr | |
# Expose the port the app runs on | |
# Run the Flask app | |
CMD ["flask", "run", "--host", "0.0.0.0", "--port", "7860"] |