File size: 449 Bytes
1a3fa2f 001c3d9 1a3fa2f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# 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"] |