Spaces:
Build error
Build error
File size: 586 Bytes
cc11635 ae11f85 cbf7af7 93db950 cbf7af7 93db950 cbf7af7 8823f65 ae11f85 cbf7af7 fcae197 cbf7af7 8823f65 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
FROM registry.hf.spaces/microsoft-omniparser:latest
USER root
RUN chmod 1777 /tmp \
&& apt update -q && apt install -y ca-certificates wget libgl1 \
&& wget -qO /tmp/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb \
&& dpkg -i /tmp/cuda-keyring.deb && apt update -q \
&& apt install -y --no-install-recommends libcudnn8 libcublas-12-2
RUN pip install fastapi[all]
COPY main.py main.py
COPY utils.py utils.py
RUN python main.py
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |