From 7b5d94d13d6d323cb08a13d25a84c9536bdd1712 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Tue, 3 Oct 2017 12:55:58 +0200 Subject: [PATCH] Adapt development Dockerfile to best practices The main Dockerfile already uses the best practice to combine the apt-get update and apt-get install into a single RUN command. --- develop/Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/develop/Dockerfile b/develop/Dockerfile index 4a151b6..92458c1 100644 --- a/develop/Dockerfile +++ b/develop/Dockerfile @@ -19,22 +19,21 @@ ENV START_SCRIPT /root/start-develop.sh # this forces dpkg not to call sync() after package extraction and speeds up # install RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup -# we don't need and apt cache in a container +# we don't need an apt cache in a container RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache -RUN apt-get -y update && \ - export DEBIAN_FRONTEND=noninteractive - ############################################################ # Install development requirements ############################################################ - -RUN apt-get -y install \ +RUN apt-get -y update && \ + DEBIAN_FRONTEND=noninteractive && \ + apt-get -y install \ git \ nodejs \ nodejs-legacy \ npm \ --no-install-recommends + RUN git config --global url."https://".insteadOf git:// # Avoid this: "Problem with the SSL CA cert (path? access rights?)" RUN git config --global http.sslVerify false