Tesseract / Dockerfile
DIVY118's picture
Update Dockerfile
281e828 verified
raw
history blame
479 Bytes
# 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
RUN apt install tesseract-ocr
RUN apt install libtesseract-dev
# Expose the port the app runs on
# Run the Flask app
CMD ["flask", "run", "--host", "0.0.0.0", "--port", "7860"]