Spaces:
Sleeping
Sleeping
File size: 567 Bytes
9c5e6eb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
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"] |