diff --git a/Dockerfile b/Dockerfile index fd07264..47ae737 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM ubuntu:18.04 +FROM ubuntu:20.04 # ARGUMENTS -ARG SDK_MANAGER_VERSION=1.8.0-10363 +ARG SDK_MANAGER_VERSION=1.9.1-10844 ARG SDK_MANAGER_DEB=sdkmanager_${SDK_MANAGER_VERSION}_amd64.deb ARG GID=1000 ARG UID=1000 @@ -21,6 +21,8 @@ RUN useradd -m $USERNAME && \ groupmod --gid ${GID} $USERNAME # install package +RUN echo "Acquire::GzipIndexes \"false\"; Acquire::CompressionTypes::Order:: \"gz\";" > /etc/apt/apt.conf.d/docker-gzip-indexes +ENV DEBIAN_FRONTEND noninteractive RUN yes | unminimize && \ apt-get update && apt-get install -y --no-install-recommends \ build-essential \ @@ -42,10 +44,23 @@ RUN yes | unminimize && \ net-tools \ python \ sshpass \ - chromium-browser \ qemu-user-static \ binfmt-support \ libxshmfence1 \ + tzdata \ + locales \ + sudo \ + wget \ + ca-certificates \ + && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +# install Google Chrome +RUN sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - +RUN apt-get update && apt-get install -y --no-install-recommends \ + google-chrome-stable \ && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* @@ -56,8 +71,6 @@ ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 -RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections - # install SDK Manager USER jetpack COPY --chown=jetpack:jetpack ${SDK_MANAGER_DEB} /home/${USERNAME}/ diff --git a/README.md b/README.md index 0eb1cd8..cf05a18 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ NVIDIA released official Docker image(. And, please put the package of NVIDIA SDK Manager in the same directory as the Dockerfile. -This time, I used `sdkmanager_1.8.0-10363_amd64.deb`. +This time, I used `sdkmanager_1.9.1-10844_amd64.deb`. ### Build Docker image @@ -29,7 +29,7 @@ docker build --build-arg GID=$(id -g) --build-arg UID=$(id -u) -t jetpack . To build a Docker image with a specific SDK Manager version override the ``SDK_MANAGER_VERSION`` variable in the Docker command line ``` -docker build --build-arg SDK_MANAGER_VERSION=1.8.0-10363 --build-arg GID=$(id -g) --build-arg UID=$(id -u) -t jetpack . +docker build --build-arg SDK_MANAGER_VERSION=1.9.1-10844 --build-arg GID=$(id -g) --build-arg UID=$(id -u) -t jetpack . ``` ### Create Docker container