Spaces:
Sleeping
Sleeping
File size: 434 Bytes
faf24be 61dd50b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | FROM python:3.8-slim-bookworm
RUN mkdir /app
COPY ./*.txt ./*.py ./*.sh ./*.onnx /app/
RUN cd /app \
&& python3 -m pip install --upgrade pip\
&& pip3 install --no-cache-dir -r requirements.txt\
&& rm -rf /tmp/* && rm -rf /root/.cache/* \
&& apt-get --allow-releaseinfo-change update && apt install libgl1-mesa-glx libglib2.0-0 -y
WORKDIR /app
CMD ["python3", "ocr_server.py", "--port", "7860", "--ocr", "--det"]
|