Browse code

Dockerfile: sort packages alphabetically

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit ee0ef6c535dc8a3ab62266d7da7801dd7c5b4ea8)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/10/06 05:56:32
Showing 1 changed files
... ...
@@ -40,13 +40,13 @@ FROM base AS criu
40 40
 ARG DEBIAN_FRONTEND
41 41
 # Install dependency packages specific to criu
42 42
 RUN apt-get update && apt-get install -y --no-install-recommends \
43
+        libcap-dev \
43 44
         libnet-dev \
45
+        libnl-3-dev \
44 46
         libprotobuf-c-dev \
45 47
         libprotobuf-dev \
46
-        libnl-3-dev \
47
-        libcap-dev \
48
-        protobuf-compiler \
49 48
         protobuf-c-compiler \
49
+        protobuf-compiler \
50 50
         python-protobuf \
51 51
     && rm -rf /var/lib/apt/lists/*
52 52
 
... ...
@@ -112,14 +112,14 @@ FROM base AS cross-false
112 112
 
113 113
 FROM base AS cross-true
114 114
 ARG DEBIAN_FRONTEND
115
-RUN dpkg --add-architecture armhf
116 115
 RUN dpkg --add-architecture arm64
117 116
 RUN dpkg --add-architecture armel
117
+RUN dpkg --add-architecture armhf
118 118
 RUN if [ "$(go env GOHOSTARCH)" = "amd64" ]; then \
119 119
         apt-get update && apt-get install -y --no-install-recommends \
120
-        crossbuild-essential-armhf \
121 120
         crossbuild-essential-arm64 \
122 121
         crossbuild-essential-armel \
122
+        crossbuild-essential-armhf \
123 123
         && rm -rf /var/lib/apt/lists/*; \
124 124
     fi
125 125
 
... ...
@@ -140,12 +140,12 @@ ARG DEBIAN_FRONTEND
140 140
 # other architectures cannnot crossbuild amd64.
141 141
 RUN if [ "$(go env GOHOSTARCH)" = "amd64" ]; then \
142 142
         apt-get update && apt-get install -y --no-install-recommends \
143
-            libseccomp-dev:armhf \
144
-            libseccomp-dev:arm64 \
145
-            libseccomp-dev:armel \
146
-            libapparmor-dev:armhf \
147 143
             libapparmor-dev:arm64 \
148 144
             libapparmor-dev:armel \
145
+            libapparmor-dev:armhf \
146
+            libseccomp-dev:arm64 \
147
+            libseccomp-dev:armel \
148
+            libseccomp-dev:armhf \
149 149
             # install this arches seccomp here due to compat issues with the v0 builder
150 150
             # This is as opposed to inheriting from runtime-dev-cross-false
151 151
             libapparmor-dev \
... ...
@@ -255,15 +255,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
255 255
         apparmor \
256 256
         aufs-tools \
257 257
         bash-completion \
258
+        binutils-mingw-w64 \
258 259
         btrfs-tools \
260
+        bzip2 \
261
+        g++-mingw-w64-x86-64 \
259 262
         iptables \
260 263
         jq \
261 264
         libcap2-bin \
262 265
         libdevmapper-dev \
263
-        libudev-dev \
266
+        libnet1 \
267
+        libnl-3-200 \
268
+        libprotobuf-c1 \
264 269
         libsystemd-dev \
265
-        binutils-mingw-w64 \
266
-        g++-mingw-w64-x86-64 \
270
+        libudev-dev \
267 271
         net-tools \
268 272
         pigz \
269 273
         python3-pip \
... ...
@@ -273,12 +277,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
273 273
         vim \
274 274
         vim-common \
275 275
         xfsprogs \
276
-        zip \
277
-        bzip2 \
278 276
         xz-utils \
279
-        libprotobuf-c1 \
280
-        libnet1 \
281
-        libnl-3-200 \
277
+        zip \
282 278
     && rm -rf /var/lib/apt/lists/*
283 279
 
284 280
 RUN pip3 install yamllint==1.16.0