From bcf2cfcadada1340b05e517e1f629b642915837a Mon Sep 17 00:00:00 2001 From: Peter Becker Date: Wed, 3 Jun 2020 09:21:14 +0000 Subject: [PATCH] combine several apt install calls --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5b0af43..0ffb6be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,14 +11,11 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # Install dependencies RUN apt-get update \ - && apt-get install wget gnupg2 lsb-core -y \ + && apt-get install -y wget gnupg2 lsb-core apt-transport-https ca-certificates curl \ && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \ && echo "deb [ trusted=yes ] https://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list \ - && apt-get update \ - && apt-get install -y apt-transport-https ca-certificates - -RUN apt-get install -y curl \ && wget --quiet -O - https://deb.nodesource.com/setup_10.x | bash - \ + && apt-get update \ && apt-get install -y nodejs RUN apt-get install -y --no-install-recommends \