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
This commit is contained in:
Peter Dave Hello 2020-10-06 22:24:39 +08:00 committed by GitHub
parent 6902cbfd3d
commit 7aa29dad84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 #