From de9e8b8573432af714a990bc72075d6feddb3faa Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Tue, 12 Dec 2023 11:25:27 -0500 Subject: [PATCH] merge apt-get update and apt-get install build layers -- install will not work on out-of-date update data --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 86424a1..74bec77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,15 +5,13 @@ LABEL maintainer "Daniel Park " # non-interactive session just for build ARG DEBIAN_FRONTEND=noninteractive -# update apt database and install R apt repo +# update apt database and install R apt repo; install all desired packages RUN apt-get update && \ apt-get -y -qq install software-properties-common && \ apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 && \ add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/' && \ - apt-get update - -# install all desired packages -RUN apt-get -y -qq install \ + apt-get update && \ + apt-get -y -qq install \ less nano vim git wget curl jq zstd pigz parallel locales \ gnupg libssl-dev libcurl4-openssl-dev \ libgsl-dev libxml2 libxml2-dev \