From 3ddf8a9a9e04b32fbc6260bc27294d061ea70853 Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Fri, 18 Jun 2021 10:59:08 +0100 Subject: [PATCH] refactor: move `apt-get`'s `-y` flag to the end Improves the readability and consistency. PR: https://github.com/zmkfirmware/zmk-docker/pull/86 --- Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 31ce40c5..b2bf7309 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ ENV DEBIAN_FRONTEND=noninteractive ARG ZEPHYR_VERSION ENV ZEPHYR_VERSION=${ZEPHYR_VERSION} RUN \ - apt-get -y update \ - && apt-get -y install --no-install-recommends \ + apt-get update -y \ + && apt-get install -y --no-install-recommends \ ccache \ cmake \ file \ @@ -41,12 +41,12 @@ ENV LC_ALL=C ENV PAGER=less RUN \ - apt-get -y update \ - && apt-get -y install --no-install-recommends \ + apt-get update -y \ + && apt-get install -y --no-install-recommends \ curl \ && curl -sL https://deb.nodesource.com/setup_14.x | bash - \ - && apt-get -y update \ - && apt-get -y install --no-install-recommends \ + && apt-get update -y \ + && apt-get install -y --no-install-recommends \ clang-format \ g++-multilib \ gdb \ @@ -88,8 +88,8 @@ ARG ZEPHYR_SDK_VERSION ARG ZEPHYR_SDK_SETUP_FILENAME=zephyr-toolchain-${ARCHITECTURE}-${ZEPHYR_SDK_VERSION}-x86_64-linux-setup.run ARG ZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk-${ZEPHYR_SDK_VERSION} RUN \ - apt-get -y update \ - && apt-get -y install --no-install-recommends \ + apt-get update -y \ + && apt-get install -y --no-install-recommends \ bzip2 \ wget \ xz-utils \