From 7aa29dad8454653e3b10378c7ad0924a1dae0185 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Tue, 6 Oct 2020 22:24:39 +0800 Subject: [PATCH] Remove unnecessary --update for apk in Dockerfile There are two `apk add` use both `--update` and `--no-cache` parameter, which is unnecessary, usually should use only `--no-cache` to prevent leaving cache files, just like the other `apk add` in line 249 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7f7e8eae..85d1fd03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -77,7 +77,7 @@ ARG GLIBC_VERSION='2.31-r0' #################### # Run APK installs # #################### -RUN apk add --update --no-cache \ +RUN apk add --no-cache \ ansible-lint \ bash \ coreutils \ @@ -263,7 +263,7 @@ RUN printf '#!/bin/bash \n\nif [[ -x "$1" ]]; then exit 0; else echo "Error: Fil ################################################# # Basic setup, programs and init RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories \ - && apk add --update --no-cache rakudo zef + && apk add --no-cache rakudo zef ###################### # Install CheckStyle #