refactor: standardize apt-get usage

- Always put flags in same location
- Always use apt-get
- Add --no-install-recommends where possible
This commit is contained in:
Jose Diaz-Gonzalez
2021-01-17 16:09:58 -05:00
parent 7b51bcd4ac
commit ed84f21c08
16 changed files with 37 additions and 37 deletions

View File

@@ -327,7 +327,7 @@ export DEBIAN_FRONTEND=noninteractive
case "$DOKKU_DISTRO" in
debian|ubuntu)
apt-get install -qq -y nginx
apt-get -qq -y --no-install-recommends install nginx
;;
opensuse)
@@ -1465,7 +1465,7 @@ dokku_log_info1 "Installing GraphicsMagick..."
CMD="cat > gm && \
dpkg -s graphicsmagick >/dev/null 2>&1 || \
(apt-get update && apt-get install -y graphicsmagick && apt-get clean)"
(apt-get update -qq && apt-get -qq -y --no-install-recommends install graphicsmagick && apt-get clean)"
CID=$(docker run $DOKKU_GLOBAL_RUN_ARGS -i -a stdin $IMAGE /bin/bash -c "$CMD")
test $(docker wait $CID) -eq 0