Osterkarten / Dockerfile
johann-foerster's picture
build-deploy
82aaa1f
raw
history blame
863 Bytes
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"]