Do not use apt as it is meant to be an end-user tool, use apt-get or apt-cache instead
23RUN echo "# R${L4T_MAJOR} (release), REVISION: ${L4T_MINOR}.${L4T_PATCH}" > /etc/nv_tegra_release
24
25# Add APT Repo for PCIe drivers and Bazel.
26RUN apt update && apt install -y curl && \ 27 echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list && \
28 curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
29
Do not use apt as it is meant to be an end-user tool, use apt-get or apt-cache instead
31RUN echo "CUDA Version ${CUDA_MAJOR}.${CUDA_MINOR}.${CUDA_PATCH}" > /usr/local/cuda/version.txt
32
33# Add APT Repo for PCIe drivers.
34RUN apt update && apt install -y curl && \ 35 echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list && \
36 curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
37 curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg && \
Description
Do not use apt
as it is meant to be an end-user tool.
apt
is discouraged by the linux distributions as an unattended tool as its interface may suffer changes between versions. Better use the more stable apt-get
and apt-cache
Bad Practice
FROM debian:buster
RUN apt install curl=1.1.0
Recommended
FROM debian:buster
RUN apt-get install curl=1.1.0