tharms commited on
Commit
3243073
·
1 Parent(s): 408cd21

added log output for custom launch

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -37,10 +37,14 @@ RUN apt-get update -y && \
37
  apt-get clean && \
38
  rm -rf /var/lib/apt/lists/*
39
 
40
- RUN pip install pygit2==1.12.2
41
- WORKDIR /content
42
- RUN git clone https://github.com/lllyasviel/Fooocus.git
43
  RUN chown -R user:user /content
44
- WORKDIR /content/Fooocus
45
 
46
- CMD [ "python", "/content/Fooocus/entry_with_update.py", "--share", "--always-high-vram" ]
 
 
 
 
 
 
37
  apt-get clean && \
38
  rm -rf /var/lib/apt/lists/*
39
 
40
+ RUN adduser --disabled-password --gecos '' user && \
41
+ mkdir -p /content/app /content/data
42
+
43
  RUN chown -R user:user /content
 
44
 
45
+ WORKDIR /content
46
+ USER user
47
+
48
+ RUN git clone https://github.com/lllyasviel/Fooocus /content/app
49
+
50
+ CMD [ "python", "/content/app/entry_with_update.py", "--share", "--always-high-vram" ]