Spaces:
Sleeping
Sleeping
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"] | |