Skip to content

Commit 0b0ac79

Browse files
author
Markus Perl
committed
Multiple packages updated
1 parent 030a5f0 commit 0b0ac79

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

cuda-ubuntu.dockerfile

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,18 @@ RUN mkdir -p /code
2121

2222
# Clone only specific subdirectory of CUDA samples needed for deviceQuery
2323
WORKDIR /code
24-
RUN mkdir -p /code/deviceQuery && \
25-
git clone --depth 1 --filter=blob:none --sparse https://github.com/NVIDIA/cuda-samples.git && \
26-
cd cuda-samples && \
27-
git sparse-checkout set Samples/1_Utilities/deviceQuery && \
28-
cp -r Samples/1_Utilities/deviceQuery/* /code/deviceQuery/ && \
29-
rm -rf cuda-samples
24+
RUN apt-get update \
25+
&& apt-get -y --no-install-recommends install build-essential curl ca-certificates libva-dev \
26+
python3 python-is-python3 ninja-build meson git curl \
27+
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* \
28+
&& update-ca-certificates
3029

31-
# Build deviceQuery (newer CUDA samples use a different directory structure)
32-
WORKDIR /code/deviceQuery
33-
RUN mkdir build && cd build && cmake .. && \
34-
make -j$(nproc) && \
35-
cp deviceQuery /usr/local/bin/ && \
36-
rm -rf /code/cuda-samples
30+
# build and move deviceQuery to /usr/bin
31+
RUN mkdir -p /code && \
32+
git clone --depth 1 https://github.com/NVIDIA/cuda-samples.git /code/cuda-samples && \
33+
cd /code/cuda-samples/Samples/1_Utilities/deviceQuery && \
34+
make && \
35+
mv deviceQuery /usr/local/bin
3736

3837
WORKDIR /app
3938
COPY ./build-ffmpeg /app/build-ffmpeg

0 commit comments

Comments
 (0)