2019-02-11 05:05:43 +00:00
|
|
|
# ------------------------------------------------------------------------
|
2020-02-28 00:30:10 +00:00
|
|
|
from mcluseau/golang-builder:1.14.0 as build
|
2019-02-11 05:05:43 +00:00
|
|
|
|
|
|
|
# ------------------------------------------------------------------------
|
2020-02-28 00:30:10 +00:00
|
|
|
from alpine:3.11.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"]
|