Skip to content

Commit 3ddf8a9

Browse files
committed
refactor: move apt-get's -y flag to the end
Improves the readability and consistency. PR: #86
1 parent b1bebd0 commit 3ddf8a9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ ENV DEBIAN_FRONTEND=noninteractive
77
ARG ZEPHYR_VERSION
88
ENV ZEPHYR_VERSION=${ZEPHYR_VERSION}
99
RUN \
10-
apt-get -y update \
11-
&& apt-get -y install --no-install-recommends \
10+
apt-get update -y \
11+
&& apt-get install -y --no-install-recommends \
1212
ccache \
1313
cmake \
1414
file \
@@ -41,12 +41,12 @@ ENV LC_ALL=C
4141
ENV PAGER=less
4242

4343
RUN \
44-
apt-get -y update \
45-
&& apt-get -y install --no-install-recommends \
44+
apt-get update -y \
45+
&& apt-get install -y --no-install-recommends \
4646
curl \
4747
&& curl -sL https://deb.nodesource.com/setup_14.x | bash - \
48-
&& apt-get -y update \
49-
&& apt-get -y install --no-install-recommends \
48+
&& apt-get update -y \
49+
&& apt-get install -y --no-install-recommends \
5050
clang-format \
5151
g++-multilib \
5252
gdb \
@@ -88,8 +88,8 @@ ARG ZEPHYR_SDK_VERSION
8888
ARG ZEPHYR_SDK_SETUP_FILENAME=zephyr-toolchain-${ARCHITECTURE}-${ZEPHYR_SDK_VERSION}-x86_64-linux-setup.run
8989
ARG ZEPHYR_SDK_INSTALL_DIR=/opt/zephyr-sdk-${ZEPHYR_SDK_VERSION}
9090
RUN \
91-
apt-get -y update \
92-
&& apt-get -y install --no-install-recommends \
91+
apt-get update -y \
92+
&& apt-get install -y --no-install-recommends \
9393
bzip2 \
9494
wget \
9595
xz-utils \

0 commit comments

Comments
 (0)