FROM python:3.10-alpine3.18 as runtime COPY prebuild_packages.txt /tmp/ RUN apk add --no-cache linux-headers==6.3-r0 \ build-base==0.5-r3 \ cmake==3.26.5-r0 \ rust \ cargo \ autoconf \ libsm-dev \ libxext-dev \ poppler-utils \ leptonica-dev \ tesseract-ocr \ COPY requirements.txt / RUN pip install -r /requirements.txt ENTRYPOINT ["python3","main.py"]