@@ -4,7 +4,7 @@ FROM nvidia/cuda:12.2.2-cudnn8-devel-ubuntu22.04
4
4
ARG DEBIAN_FRONTEND=noninteractive
5
5
6
6
# Install essential packages
7
- RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ RUN apt-get update && apt-get install -y -q - -no-install-recommends \
8
8
software-properties-common \
9
9
build-essential \
10
10
cmake \
@@ -22,35 +22,44 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
22
22
libxi-dev \
23
23
mesa-common-dev \
24
24
libc++1 \
25
- openssh-client && \
26
- rm -rf /var/lib/apt/lists/*
25
+ openssh-client \
26
+ ffmpeg \
27
+ && apt-get clean \
28
+ && rm -rf /var/lib/apt/lists/*
27
29
28
30
# Install Python 3.11
29
31
RUN apt-add-repository -y ppa:deadsnakes/ppa \
30
- && apt-get install -y python3.11 python3.11-dev python3.11-distutils
32
+ && apt-get install -y -q --no-install-recommends python3.11 python3.11-dev python3.11-distutils \
33
+ && apt-get clean \
34
+ && rm -rf /var/lib/apt/lists/*
31
35
32
36
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11
33
37
34
38
# Set Python 3.11 as default
35
39
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 11 && \
36
40
update-alternatives --install /usr/bin/python python /usr/bin/python3.11 11
37
41
38
- RUN apt-get remove -y cmake && pip3 install --upgrade cmake
42
+ RUN apt-get remove -y cmake && pip3 install --no-cache-dir --upgrade cmake
43
+
44
+ # Copy the gpudrive repository
45
+ COPY . /gpudrive
46
+ WORKDIR /gpudrive
47
+ RUN git submodule update --init --recursive --depth 1
39
48
40
- # Clone the gpudrive repository
41
- RUN git clone --recursive https://github.com/Emerge-Lab/gpudrive.git --branch dev-packaged
42
49
ENV MADRONA_MWGPU_KERNEL_CACHE=./gpudrive_cache
43
50
44
- WORKDIR /gpudrive
45
51
RUN mkdir build
46
52
WORKDIR /gpudrive/build
47
- RUN cmake .. -DCMAKE_BUILD_TYPE=Release
53
+ RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_POLICY_VERSION_MINIMUM=3.5 && find external -type f -name "*.tar" -delete
48
54
RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/libcuda.so.1
49
55
RUN LD_LIBRARY_PATH=/usr/local/cuda/lib64/stubs/:$LD_LIBRARY_PATH make -j
50
56
RUN rm /usr/local/cuda/lib64/stubs/libcuda.so.1
51
57
WORKDIR /gpudrive
52
58
53
- RUN pip3 install -e .[pufferlib]
59
+ RUN pip3 install --no-cache-dir torch==2.6.0 && rm -rf ~/.cache/pip/*
60
+ RUN pip3 install --no-cache-dir tensorflow==2.19.0 && rm -rf ~/.cache/pip/*
61
+ RUN pip3 install --no-cache-dir nvidia-cuda-runtime-cu12==12.4.127 && rm -rf ~/.cache/pip/*
62
+ RUN pip3 install --no-cache-dir -e .[vbd,pufferlib]
54
63
55
64
CMD ["/bin/bash" ]
56
65
LABEL org.opencontainers.image.source=https://github.com/Emerge-Lab/gpudrive
0 commit comments