File size: 608 Bytes
36cd99b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8774faf
65218fc
 
 
046d744
 
36cd99b
5e93001
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
FROM python:3.10-slim

WORKDIR /mannequin_to_model

COPY . /mannequin_to_model

RUN apt-get update && apt-get install -y \
    libgl1-mesa-glx \
    ffmpeg \
    libsm6 \
    libxext6 \
    build-essential \
    git \
    && apt-get clean

RUN pip install --no-cache-dir --upgrade pip==23.0

RUN pip install --no-cache-dir -r requirements.txt

RUN mkdir -p /mannequin_to_model/.config/matplotlib /mannequin_to_model/.insightface/models /mannequin_to_model/.cache/gdown && \
    chmod -R 777 /mannequin_to_model

ENV MPLCONFIGDIR=/mannequin_to_model/.config/matplotlib

EXPOSE 7860

CMD ["python", "main.py"]