tesseract / Dockerfile
Thantham
add files
9c5e6eb
FROM ubuntu:jammy
#FROM alpine:latest
# Install dependencies
RUN apt-get update && apt-get install -y \
tesseract-ocr \
tesseract-ocr-eng \
tesseract-ocr-tha \
python3 \
python3-pip
# Install FastAPI and Uvicorn (an ASGI server)
RUN pip3 install fastapi uvicorn pillow pytesseract python-multipart PyMuPDF
# Set working directory
WORKDIR /app
# Copy your application code
COPY . .
# Expose port for the service
EXPOSE 5000
# Start your application with Uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]