add dockerfile

pull/313/head
秋葉杏 2023-11-16 23:01:55 +08:00
parent 6329cd27dc
commit 9d84f3203d
No known key found for this signature in database
GPG Key ID: 9D600258808ACBCD
1 changed files with 21 additions and 0 deletions

21
Dockerfile Normal file
View File

@ -0,0 +1,21 @@
FROM nvcr.io/nvidia/pytorch:23.07-py3
EXPOSE 28000
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && apt update && apt install python3-tk -y
RUN mkdir /app
WORKDIR /app
RUN git clone --recurse-submodules https://github.com/Akegarasu/lora-scripts
WORKDIR /app/lora-scripts
RUN pip config set global.index-url https://mirror.baidu.com/pypi/simple && pip install xformers==0.0.21 --no-deps && pip install -r requirements.txt
WORKDIR /app/lora-scripts/sd-scripts
RUN pip install -r requirements.txt
WORKDIR /app/lora-scripts
CMD ["python", "gui.py", "--listen"]