Skip to content

Commit 030a5f0

Browse files
author
Markus Perl
committed
Multiple packages updated
1 parent 52d47e3 commit 030a5f0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cuda-ubuntu.dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility,video
1010
# Update package lists
1111
RUN apt-get update
1212
# Install required packages
13-
RUN apt-get -y --no-install-recommends install build-essential curl ca-certificates libva-dev libva-drm2 \
13+
RUN apt-get -y --no-install-recommends install build-essential curl ca-certificates libva-dev libva-drm2 cmake \
1414
python3 python-is-python3 ninja-build meson git curl
1515
# Clean up package cache and temporary files
1616
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* && find /var/log -type f -delete
@@ -30,9 +30,10 @@ RUN mkdir -p /code/deviceQuery && \
3030

3131
# Build deviceQuery (newer CUDA samples use a different directory structure)
3232
WORKDIR /code/deviceQuery
33-
RUN make && \
33+
RUN mkdir build && cd build && cmake .. && \
34+
make -j$(nproc) && \
3435
cp deviceQuery /usr/local/bin/ && \
35-
rm -rf /code/deviceQuery
36+
rm -rf /code/cuda-samples
3637

3738
WORKDIR /app
3839
COPY ./build-ffmpeg /app/build-ffmpeg

0 commit comments

Comments
 (0)