tharms commited on
Commit
2adafb0
·
1 Parent(s): 7e43abb

added log output for custom launch

Browse files
Files changed (1) hide show
  1. Dockerfile +35 -24
Dockerfile CHANGED
@@ -1,34 +1,45 @@
1
  FROM nvidia/cuda:12.3.1-base-ubuntu22.04
2
  ENV DEBIAN_FRONTEND noninteractive
3
- # ENV CMDARGS --listen
4
- # ENV CMDARGS --share --always-high-vram
5
 
6
- RUN apt-get update -y && \
7
- apt-get install -y curl libgl1 libglib2.0-0 python3-pip python-is-python3 git && \
8
- apt-get clean && \
9
- rm -rf /var/lib/apt/lists/*
10
 
11
- COPY requirements_docker.txt requirements_versions.txt /tmp/
12
- RUN pip cache purge
13
- RUN pip install --no-cache-dir -r /tmp/requirements_docker.txt -r /tmp/requirements_versions.txt && \
14
- rm -f /tmp/requirements_docker.txt /tmp/requirements_versions.txt
15
- RUN pip install --no-cache-dir xformers==0.0.23 --no-dependencies
16
- RUN curl -fsL -o /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2 https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 && \
17
- chmod +x /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2
18
 
19
- RUN adduser --disabled-password --gecos '' user && \
20
- mkdir -p /content/app /content/data
21
 
22
- COPY entrypoint.sh /content/
23
- RUN chown -R user:user /content
24
 
25
- WORKDIR /content
26
- USER user
 
 
 
 
 
 
 
27
 
28
- RUN git clone https://github.com/lllyasviel/Fooocus /content/app
29
- COPY ../launch.py /content/app/launch.py
30
- COPY ../modules/model_loader.py /content/app/modules/model_loader.py
31
- RUN mv /content/app/models /content/app/models.org
 
 
 
 
 
32
 
33
- # CMD [ "sh", "-c", "/content/entrypoint.sh ${CMDARGS}" ]
34
  CMD [ "python", "/content/app/entry_with_update.py", "--share", "--always-high-vram" ]
 
1
  FROM nvidia/cuda:12.3.1-base-ubuntu22.04
2
  ENV DEBIAN_FRONTEND noninteractive
3
+ # # ENV CMDARGS --listen
4
+ # # ENV CMDARGS --share --always-high-vram
5
 
6
+ # RUN apt-get update -y && \
7
+ # apt-get install -y curl libgl1 libglib2.0-0 python3-pip python-is-python3 git && \
8
+ # apt-get clean && \
9
+ # rm -rf /var/lib/apt/lists/*
10
 
11
+ # COPY requirements_docker.txt requirements_versions.txt /tmp/
12
+ # RUN pip cache purge
13
+ # RUN pip install --no-cache-dir -r /tmp/requirements_docker.txt -r /tmp/requirements_versions.txt && \
14
+ # rm -f /tmp/requirements_docker.txt /tmp/requirements_versions.txt
15
+ # RUN pip install --no-cache-dir xformers==0.0.23 --no-dependencies
16
+ # RUN curl -fsL -o /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2 https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 && \
17
+ # chmod +x /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2
18
 
19
+ # RUN adduser --disabled-password --gecos '' user && \
20
+ # mkdir -p /content/app /content/data
21
 
22
+ # COPY entrypoint.sh /content/
23
+ # RUN chown -R user:user /content
24
 
25
+ # WORKDIR /content
26
+ # USER user
27
+
28
+ # RUN git clone https://github.com/lllyasviel/Fooocus /content/app
29
+ # COPY ../launch.py /content/app/launch.py
30
+ # COPY ../modules/model_loader.py /content/app/modules/model_loader.py
31
+ # RUN mv /content/app/models /content/app/models.org
32
+
33
+ # # CMD [ "sh", "-c", "/content/entrypoint.sh ${CMDARGS}" ]
34
 
35
+ RUN apt-get update -y && \
36
+ apt-get install -y curl libgl1 libglib2.0-0 python3-pip python-is-python3 git && \
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
+ WORKDIR /content/Fooocus
44
 
 
45
  CMD [ "python", "/content/app/entry_with_update.py", "--share", "--always-high-vram" ]