2019-02-11 05:05:43 +00:00
|
|
|
# ------------------------------------------------------------------------
|
2020-11-19 16:04:45 +00:00
|
|
|
from mcluseau/golang-builder:1.15.5 as build
|
2019-02-11 05:05:43 +00:00
|
|
|
|
|
|
|
# ------------------------------------------------------------------------
|
2020-11-19 16:04:45 +00:00
|
|
|
from alpine:3.12
|
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"]
|