initrd/Dockerfile

20 lines
456 B
Docker
Raw Normal View History

2019-02-11 05:05:43 +00:00
# ------------------------------------------------------------------------
2019-12-03 09:56:57 +00:00
from mcluseau/golang-builder:1.13.4 as build
2019-02-11 05:05:43 +00:00
# ------------------------------------------------------------------------
2019-12-03 09:56:57 +00:00
from alpine:3.10.3
2019-02-11 05:05:43 +00:00
env busybox_v=1.28.1-defconfig-multiarch \
arch=x86_64
run apk add --update curl
workdir /layer
add build-layer /
run /build-layer
2019-10-17 00:28:18 +00:00
copy --from=build /go/bin/initrd /layer/init
2019-02-11 05:05:43 +00:00
entrypoint ["sh","-c","find |cpio -H newc -o |base64"]