Spaces:
Sleeping
Sleeping
File size: 684 Bytes
36cd99b 4689a84 62e7abe 65218fc 4689a84 046d744 36cd99b 4689a84 |
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 30 31 |
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
# Create necessary directories and set permissions
RUN mkdir -p /tmp/.config/matplotlib /tmp/.insightface/models /tmp/.cache/gdown && \
chmod -R 777 /tmp && \
chmod -R 777 /mannequin_to_model
# Set environment variables
ENV MPLCONFIGDIR=/tmp/.config/matplotlib
ENV XDG_CACHE_HOME=/tmp/.cache
EXPOSE 7860
CMD ["python", "main.py"] |