Skip to content

Commit

Permalink
merge apt-get update and apt-get install build layers -- install will…
Browse files Browse the repository at this point in the history
… not work on out-of-date update data
  • Loading branch information
dpark01 committed Dec 12, 2023
1 parent 4708cec commit de9e8b8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ LABEL maintainer "Daniel Park <[email protected]>"
# 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 \
Expand Down

0 comments on commit de9e8b8

Please sign in to comment.