20 lines
454 B
Docker
20 lines
454 B
Docker
# ------------------------------------------------------------------------
|
|
from mcluseau/golang-builder:1.13.1 as build
|
|
|
|
# ------------------------------------------------------------------------
|
|
from alpine:3.10
|
|
|
|
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"]
|