foreign-kernels: Switch to 3.7 and use FROM scratch

We don't use toybox-media anymore as the base for kernel
images.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2018-01-05 13:59:03 +00:00
parent 0e64c95561
commit f696c5a253
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM alpine:3.5 AS extract
FROM alpine:3.7 AS extract
ARG DEB_URLS
@ -20,7 +20,7 @@ RUN cp -a boot/System.map-* /out/System.map
RUN tar cf /out/kernel.tar lib
RUN tar cf /out/kernel-dev.tar usr || true
FROM linuxkit/toybox-media:b396a375852e5dffc002389d95e0658c8de72914@sha256:a317cc378946ee48cc011cdfc5aa08f0229f5bf10ff70e3690d8f60b36700033
FROM scratch
WORKDIR /
ENTRYPOINT []
CMD []

View File

@ -1,4 +1,4 @@
FROM alpine:3.5 AS extract
FROM alpine:3.7 AS extract
ARG RPM_URLS
@ -21,7 +21,7 @@ RUN cp -a boot/System.map-* /out/System.map || mv lib/modules/*/System.map /out/
RUN tar cf /out/kernel.tar lib
RUN tar cf /out/kernel-dev.tar usr || true
FROM linuxkit/toybox-media:b396a375852e5dffc002389d95e0658c8de72914@sha256:a317cc378946ee48cc011cdfc5aa08f0229f5bf10ff70e3690d8f60b36700033
FROM scratch
WORKDIR /
ENTRYPOINT []
CMD []