You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
530 B

  1. FROM python:3.10
  2. # Set the working directory in the container
  3. WORKDIR /app
  4. # Install poppler-utils for pdf2image
  5. RUN apt-get update && apt-get install -y poppler-utils \
  6. && apt-get -y install tesseract-ocr
  7. # Copy the current directory contents into the container at /app
  8. COPY . /app
  9. # Install any needed packages specified in requirements.txt
  10. RUN pip install -r requirements.txt
  11. # Make port 5000 available to the world outside this container
  12. EXPOSE 5000
  13. # Run app.py when the container launches
  14. CMD ["python", "app.py"]