File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -21,19 +21,18 @@ RUN mkdir -p /code
21
21
22
22
# Clone only specific subdirectory of CUDA samples needed for deviceQuery
23
23
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
30
29
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
37
36
38
37
WORKDIR /app
39
38
COPY ./build-ffmpeg /app/build-ffmpeg
You can’t perform that action at this time.
0 commit comments