FROM python:3.10-slim WORKDIR /app RUN apt-get update && apt-get install -y \ git \ libgl1 \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir --upgrade pip wheel && \ pip install --no-cache-dir \ huggingface_hub \ fastapi \ uvicorn \ python-multipart \ numpy \ scipy \ scikit-image \ trimesh \ onnxruntime # If running on the GPU: onnxruntime -> onnxruntime-gpu RUN mkdir -p /app/runs && chmod 777 /app/runs COPY . /app # start CMD ["python", "loader.py"]