initrd/Dockerfile

20 lines
454 B
Docker
Raw Normal View History

2019-02-11 05:05:43 +00:00
# ------------------------------------------------------------------------
2019-10-17 00:28:18 +00:00
from mcluseau/golang-builder:1.13.1 as build
2019-02-11 05:05:43 +00:00
# ------------------------------------------------------------------------
2019-10-17 00:28:18 +00:00
from alpine:3.10
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"]