Spaces:
Build error
Build error
brarnovidra
commited on
Update Dockerfile
Browse files- Dockerfile +16 -4
Dockerfile
CHANGED
@@ -7,18 +7,30 @@ FROM python:3.9
|
|
7 |
RUN useradd -m -u 1000 user
|
8 |
WORKDIR /app
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
# Copy and install Python dependencies
|
11 |
COPY --chown=user ./requirements.txt requirements.txt
|
12 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
13 |
|
14 |
-
# Clone and install the modified gaussian splatting repository
|
15 |
-
RUN git clone --recursive https://github.com/ashawkey/diff-gaussian-rasterization \
|
16 |
-
&& pip install ./diff-gaussian-rasterization
|
17 |
-
|
18 |
# Install specific versions of PyTorch and other dependencies
|
19 |
RUN pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu118 \
|
20 |
&& pip install -U xformers --index-url https://download.pytorch.org/whl/cu118
|
21 |
|
|
|
|
|
|
|
|
|
22 |
# Install nvdiffrast for mesh extraction
|
23 |
RUN pip install git+https://github.com/NVlabs/nvdiffrast
|
24 |
|
|
|
7 |
RUN useradd -m -u 1000 user
|
8 |
WORKDIR /app
|
9 |
|
10 |
+
# Set the CUDA_HOME environment variable
|
11 |
+
ENV CUDA_HOME=/usr/local/cuda
|
12 |
+
|
13 |
+
# Install CUDA dependencies
|
14 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
15 |
+
cuda-command-line-tools-11-8 \
|
16 |
+
libcublas-11-8 \
|
17 |
+
libcublas-dev-11-8 \
|
18 |
+
libcudnn8=8.4.1.50-1+cuda11.8 \
|
19 |
+
libcudnn8-dev=8.4.1.50-1+cuda11.8 \
|
20 |
+
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
21 |
+
|
22 |
# Copy and install Python dependencies
|
23 |
COPY --chown=user ./requirements.txt requirements.txt
|
24 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
25 |
|
|
|
|
|
|
|
|
|
26 |
# Install specific versions of PyTorch and other dependencies
|
27 |
RUN pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu118 \
|
28 |
&& pip install -U xformers --index-url https://download.pytorch.org/whl/cu118
|
29 |
|
30 |
+
# Clone and install the modified gaussian splatting repository
|
31 |
+
RUN git clone --recursive https://github.com/ashawkey/diff-gaussian-rasterization \
|
32 |
+
&& pip install ./diff-gaussian-rasterization
|
33 |
+
|
34 |
# Install nvdiffrast for mesh extraction
|
35 |
RUN pip install git+https://github.com/NVlabs/nvdiffrast
|
36 |
|