Browse code

Dockerfile: sort packages alphabetically

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/10/06 05:56:32
Showing 1 changed files
... ...
@@ -18,13 +18,13 @@ ARG DEBIAN_FRONTEND
18 18
 RUN --mount=type=cache,sharing=locked,id=moby-criu-aptlib,target=/var/lib/apt \
19 19
     --mount=type=cache,sharing=locked,id=moby-criu-aptcache,target=/var/cache/apt \
20 20
         apt-get update && apt-get install -y --no-install-recommends \
21
+            libcap-dev \
21 22
             libnet-dev \
23
+            libnl-3-dev \
22 24
             libprotobuf-c-dev \
23 25
             libprotobuf-dev \
24
-            libnl-3-dev \
25
-            libcap-dev \
26
-            protobuf-compiler \
27 26
             protobuf-c-compiler \
27
+            protobuf-compiler \
28 28
             python-protobuf
29 29
 
30 30
 # Install CRIU for checkpoint/restore support
... ...
@@ -94,15 +94,15 @@ FROM base AS cross-false
94 94
 
95 95
 FROM --platform=linux/amd64 base AS cross-true
96 96
 ARG DEBIAN_FRONTEND
97
-RUN dpkg --add-architecture armhf
98 97
 RUN dpkg --add-architecture arm64
99 98
 RUN dpkg --add-architecture armel
99
+RUN dpkg --add-architecture armhf
100 100
 RUN --mount=type=cache,sharing=locked,id=moby-cross-true-aptlib,target=/var/lib/apt \
101 101
     --mount=type=cache,sharing=locked,id=moby-cross-true-aptcache,target=/var/cache/apt \
102 102
         apt-get update && apt-get install -y --no-install-recommends \
103
-        crossbuild-essential-armhf \
104
-        crossbuild-essential-arm64 \
105
-        crossbuild-essential-armel
103
+            crossbuild-essential-arm64 \
104
+            crossbuild-essential-armel \
105
+            crossbuild-essential-armhf
106 106
 
107 107
 FROM cross-${CROSS} as dev-base
108 108
 
... ...
@@ -123,18 +123,17 @@ ARG DEBIAN_FRONTEND
123 123
 RUN --mount=type=cache,sharing=locked,id=moby-cross-true-aptlib,target=/var/lib/apt \
124 124
     --mount=type=cache,sharing=locked,id=moby-cross-true-aptcache,target=/var/cache/apt \
125 125
         apt-get update && apt-get install -y --no-install-recommends \
126
-            libseccomp-dev:armhf \
127
-            libseccomp-dev:arm64 \
128
-            libseccomp-dev:armel \
129
-            libapparmor-dev:armhf \
130 126
             libapparmor-dev:arm64 \
131 127
             libapparmor-dev:armel \
128
+            libapparmor-dev:armhf \
129
+            libseccomp-dev:arm64 \
130
+            libseccomp-dev:armel \
131
+            libseccomp-dev:armhf \
132 132
             # install this arches seccomp here due to compat issues with the v0 builder
133 133
             # This is as opposed to inheriting from runtime-dev-cross-false
134 134
             libapparmor-dev \
135 135
             libseccomp-dev
136 136
 
137
-
138 137
 FROM runtime-dev-cross-${CROSS} AS runtime-dev
139 138
 
140 139
 FROM base AS tomlv
... ...
@@ -262,15 +261,19 @@ RUN --mount=type=cache,sharing=locked,id=moby-dev-aptlib,target=/var/lib/apt \
262 262
             apparmor \
263 263
             aufs-tools \
264 264
             bash-completion \
265
+            binutils-mingw-w64 \
265 266
             btrfs-tools \
267
+            bzip2 \
268
+            g++-mingw-w64-x86-64 \
266 269
             iptables \
267 270
             jq \
268 271
             libcap2-bin \
269 272
             libdevmapper-dev \
270
-            libudev-dev \
273
+            libnet1 \
274
+            libnl-3-200 \
275
+            libprotobuf-c1 \
271 276
             libsystemd-dev \
272
-            binutils-mingw-w64 \
273
-            g++-mingw-w64-x86-64 \
277
+            libudev-dev \
274 278
             net-tools \
275 279
             pigz \
276 280
             python3-pip \
... ...
@@ -280,12 +283,8 @@ RUN --mount=type=cache,sharing=locked,id=moby-dev-aptlib,target=/var/lib/apt \
280 280
             vim \
281 281
             vim-common \
282 282
             xfsprogs \
283
-            zip \
284
-            bzip2 \
285 283
             xz-utils \
286
-            libprotobuf-c1 \
287
-            libnet1 \
288
-            libnl-3-200
284
+            zip
289 285
 
290 286
 
291 287
 RUN pip3 install yamllint==1.16.0