initrd/Dockerfile
2020-11-19 17:04:45 +01:00

20 lines
454 B
Docker

# ------------------------------------------------------------------------
from mcluseau/golang-builder:1.15.5 as build
# ------------------------------------------------------------------------
from alpine:3.12
env busybox_v=1.28.1-defconfig-multiarch \
arch=x86_64
run apk add --update curl
workdir /layer
add build-layer /
run /build-layer
copy --from=build /go/bin/initrd /layer/init
entrypoint ["sh","-c","find |cpio -H newc -o |base64"]