Spaces:
Paused
Paused
CrazyT commited on
Commit ·
dad5030
1
Parent(s): 84597aa
reduced space needed
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -2,9 +2,8 @@ FROM docker.io/library/python:3.7.13@sha256:8b743b1af852e554b98e2377f9c922216932
|
|
| 2 |
RUN useradd -m -u 1000 user
|
| 3 |
RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir datasets "huggingface-hub>=0.12.1" "protobuf<4" "click<8.1" "pydantic~=1.0"
|
| 4 |
RUN apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* && git lfs install
|
| 5 |
-
RUN wget -q https://developer.download.nvidia.com/compute/cuda/11.6.0/local_installers/cuda_11.6.0_510.39.01_linux.run
|
| 6 |
RUN apt-get update && apt-get install -y dkms build-essential gcc g++ libxi6 libxi-dev libglu1-mesa libglu1-mesa-dev libxmu6 linux-headers-amd64 linux-source freeglut3-dev
|
| 7 |
-
RUN sh cuda_11.6.0_510.39.01_linux.run --silent --toolkit
|
| 8 |
WORKDIR /home/user/app
|
| 9 |
RUN --mount=target=pre-requirements.txt,source=pre-requirements.txt pip install --no-cache-dir -r pre-requirements.txt
|
| 10 |
ENV TORCH_CUDA_ARCH_LIST=Turing
|
|
@@ -12,7 +11,7 @@ RUN --mount=target=requirements1.txt,source=requirements1.txt pip install --no-
|
|
| 12 |
RUN --mount=target=requirements2.txt,source=requirements2.txt pip install --no-cache-dir -r requirements2.txt
|
| 13 |
RUN pip install gradio
|
| 14 |
COPY --chown=user . /home/user/app
|
| 15 |
-
RUN wget https://huggingface.co/camenduru/Dynamic3DGaussians/resolve/main/output.zip?download=true && unzip output.zip && rm output.zip
|
| 16 |
RUN cp -R /home/user/app/Dynamic3DGaussians /home/user/app/Dynamic3DGaussians_cpu
|
| 17 |
RUN sed -i s/\.cuda\(\)\./\./ /home/user/app/Dynamic3DGaussians_cpu/*.py
|
| 18 |
RUN sed -i s/, device="cuda"// /home/user/app/Dynamic3DGaussians_cpu/*.py
|
|
|
|
| 2 |
RUN useradd -m -u 1000 user
|
| 3 |
RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir datasets "huggingface-hub>=0.12.1" "protobuf<4" "click<8.1" "pydantic~=1.0"
|
| 4 |
RUN apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* && git lfs install
|
|
|
|
| 5 |
RUN apt-get update && apt-get install -y dkms build-essential gcc g++ libxi6 libxi-dev libglu1-mesa libglu1-mesa-dev libxmu6 linux-headers-amd64 linux-source freeglut3-dev
|
| 6 |
+
RUN wget -q https://developer.download.nvidia.com/compute/cuda/11.6.0/local_installers/cuda_11.6.0_510.39.01_linux.run && sh cuda_11.6.0_510.39.01_linux.run --silent --toolkit && rm cuda_11.6.0_510.39.01_linux.run
|
| 7 |
WORKDIR /home/user/app
|
| 8 |
RUN --mount=target=pre-requirements.txt,source=pre-requirements.txt pip install --no-cache-dir -r pre-requirements.txt
|
| 9 |
ENV TORCH_CUDA_ARCH_LIST=Turing
|
|
|
|
| 11 |
RUN --mount=target=requirements2.txt,source=requirements2.txt pip install --no-cache-dir -r requirements2.txt
|
| 12 |
RUN pip install gradio
|
| 13 |
COPY --chown=user . /home/user/app
|
| 14 |
+
RUN wget -q https://huggingface.co/camenduru/Dynamic3DGaussians/resolve/main/output.zip?download=true && unzip output.zip && rm output.zip
|
| 15 |
RUN cp -R /home/user/app/Dynamic3DGaussians /home/user/app/Dynamic3DGaussians_cpu
|
| 16 |
RUN sed -i s/\.cuda\(\)\./\./ /home/user/app/Dynamic3DGaussians_cpu/*.py
|
| 17 |
RUN sed -i s/, device="cuda"// /home/user/app/Dynamic3DGaussians_cpu/*.py
|