ACCC1380 commited on
Commit
d75506b
1 Parent(s): f0ea36c

Upload lora-scripts/Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. lora-scripts/Dockerfile +21 -0
lora-scripts/Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvcr.io/nvidia/pytorch:23.07-py3
2
+
3
+ EXPOSE 28000
4
+
5
+ ENV TZ=Asia/Shanghai
6
+ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && apt update && apt install python3-tk -y
7
+
8
+ RUN mkdir /app
9
+
10
+ WORKDIR /app
11
+ RUN git clone --recurse-submodules https://github.com/Akegarasu/lora-scripts
12
+
13
+ WORKDIR /app/lora-scripts
14
+ RUN pip install xformers==0.0.21 --no-deps && pip install -r requirements.txt
15
+
16
+ WORKDIR /app/lora-scripts/sd-scripts
17
+ RUN pip install -r requirements.txt
18
+
19
+ WORKDIR /app/lora-scripts
20
+
21
+ CMD ["python", "gui.py", "--listen"]