-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
20 lines (16 loc) · 828 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM nvidia/cuda:12.2.0-base-ubuntu22.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y && \
apt-get install -y aria2 libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 && \
pip install -q torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 torchtext==0.15.2 torchdata==0.6.1 --extra-index-url https://download.pytorch.org/whl/cu118 && \
pip install xformers==0.0.20 triton==2.0.0 packaging==23.1 pygit2==1.12.2 && \
adduser --disabled-password --gecos '' user && \
mkdir /content && \
chown -R user:user /content
WORKDIR /content
USER user
RUN git clone https://github.com/MoonRide303/Fooocus-MRE /content/test && \
cd /content/test && \
cp settings-no-refiner.json settings.json && \
git reset --hard
CMD cd /content/test && python entry_with_update.py --share