Fix apk add usage in Dockerfile.alpine (#9032)

There is no need to use `--update` when `--no-cache` is already
specified. Use `--no-cache` only will make `apk` leave no local cache
and make the image smaller.
This commit is contained in:
Peter Dave Hello 2021-01-27 04:12:00 +08:00 committed by GitHub
parent d6ead5ae17
commit e5b02da54b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
FROM alpine:3.12
# Apache + PHP
RUN apk add --update --no-cache \
RUN apk add --no-cache \
apache2 \
php7 \
php7-common \