Spaces:
Build error
Build error
lucianotonet
commited on
Commit
•
6425a28
1
Parent(s):
d48155a
Update Dockerfile
Browse files- Dockerfile +16 -19
Dockerfile
CHANGED
@@ -1,34 +1,31 @@
|
|
1 |
-
|
2 |
-
FROM nvidia/cuda:12.3.1-base-ubuntu22.04
|
3 |
-
|
4 |
ENV DEBIAN_FRONTEND noninteractive
|
5 |
ENV CMDARGS --listen
|
6 |
|
7 |
-
# Instalar dependências do sistema
|
8 |
RUN apt-get update -y && \
|
9 |
-
apt-get install -y
|
10 |
apt-get clean && \
|
11 |
rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
# Instalar pygit2
|
17 |
-
RUN python3 -m pip install pygit2==1.12.2
|
18 |
|
19 |
-
|
20 |
-
|
|
|
21 |
|
22 |
-
|
23 |
-
|
24 |
|
25 |
-
|
26 |
-
|
27 |
|
28 |
-
|
29 |
USER user
|
30 |
|
31 |
-
|
32 |
-
|
33 |
|
|
|
34 |
|
|
|
1 |
+
FROM docker.io/nvidia/cuda:12.3.1-base-ubuntu22.04@sha256:6a7febf317514458233b87819ce47d5441357dd7763e91800c35f6745f34bbbd
|
|
|
|
|
2 |
ENV DEBIAN_FRONTEND noninteractive
|
3 |
ENV CMDARGS --listen
|
4 |
|
|
|
5 |
RUN apt-get update -y && \
|
6 |
+
apt-get install -y curl libgl1 libglib2.0-0 python3-pip python-is-python3 git && \
|
7 |
apt-get clean && \
|
8 |
rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
+
COPY requirements_docker.txt /tmp/
|
11 |
+
RUN pip install --no-cache-dir -r /tmp/requirements_docker.txt && \
|
12 |
+
rm -f /tmp/requirements_docker.txt
|
|
|
|
|
13 |
|
14 |
+
RUN pip install --no-cache-dir xformers==0.0.23 --no-dependencies
|
15 |
+
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 && \
|
16 |
+
chmod +x /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2
|
17 |
|
18 |
+
RUN adduser --disabled-password --gecos '' user && \
|
19 |
+
mkdir -p /content/app /content/data
|
20 |
|
21 |
+
COPY --from=build /entrypoint.sh /content/
|
22 |
+
RUN chown -R user:user /content
|
23 |
|
24 |
+
WORKDIR /content
|
25 |
USER user
|
26 |
|
27 |
+
RUN git clone https://github.com/lllyasviel/Fooocus /content/app
|
28 |
+
RUN mv /content/app/models /content/app/models.org
|
29 |
|
30 |
+
CMD [ "sh", "-c", "/content/entrypoint.sh ${CMDARGS}" ]
|
31 |
|