File size: 863 Bytes
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
FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04

RUN apt-get update &&  apt-get install -y \
    wget \
    supervisor \
    && 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 && \
    conda run --no-capture-output -n fooocus pip install -r requirements_versions.txt

VOLUME /ai-christmas/models/checkpoints
VOLUME /ai-christmas/models/loras
EXPOSE 7860
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "fooocus", "python", "launch.py"]