Spaces:
Build error
Build error
lucianotonet
commited on
Commit
•
e13e9ee
1
Parent(s):
5eb3aa9
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM nvidia/cuda:12.3.1-base-ubuntu22.04
|
2 |
ENV DEBIAN_FRONTEND noninteractive
|
3 |
ENV CMDARGS --listen
|
4 |
|
@@ -7,9 +7,10 @@ RUN apt-get update -y && \
|
|
7 |
apt-get clean && \
|
8 |
rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
-
COPY requirements_docker.txt
|
11 |
-
RUN pip install --no-cache-dir -r /tmp/requirements_docker.txt
|
12 |
-
rm -f /tmp/requirements_docker.txt
|
|
|
13 |
RUN pip install --no-cache-dir xformers==0.0.23 --no-dependencies
|
14 |
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 && \
|
15 |
chmod +x /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2
|
|
|
1 |
+
FROM docker.io/nvidia/cuda:12.3.1-base-ubuntu22.04@sha256:6a7febf317514458233b87819ce47d5441357dd7763e91800c35f6745f34bbbd
|
2 |
ENV DEBIAN_FRONTEND noninteractive
|
3 |
ENV CMDARGS --listen
|
4 |
|
|
|
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
|