File size: 545 Bytes
10b6e78
b5a85a9
 
 
 
 
ae69782
b5a85a9
 
 
10b6e78
 
b5a85a9
 
 
 
 
 
 
 
ae69782
e2f1a8f
b5a85a9
 
 
ae69782
b5a85a9
e2f1a8f
b5a85a9
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
27
28
29
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"]