Spaces:
Paused
Paused
File size: 944 Bytes
82aaa1f cccb6df 54b456e 82aaa1f 020971a 82aaa1f |
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 nvidia/cuda:12.2.0-runtime-ubuntu22.04
RUN apt-get update && apt-get install -y \
wget \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -ms /bin/bash app
ADD --chown=1000:1000 . /ai-christmas
USER app
WORKDIR ai-christmas
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
chmod +x Miniconda3-latest-Linux-x86_64.sh && \
./Miniconda3-latest-Linux-x86_64.sh -b && \
rm Miniconda3-latest-Linux-x86_64.sh
USER root
RUN ln -s /home/app/miniconda3/bin/conda /usr/bin/conda
USER app
RUN conda env create -f environment.yaml
RUN ["conda", "run", "-n", "fooocus", "--no-capture-output", "/bin/bash", "-c", "pip install pygit2==1.12.2 && python prepare.py"]
VOLUME /ai-christmas/models/checkpoints
VOLUME /ai-christmas/models/loras
EXPOSE 7860
ENV SYSTEM=spaces SPACE_ID=QualityMinds/Weihnachtskarten
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "fooocus", "python", "launch.py"]
|