initrd/Dockerfile

19 lines
379 B
Docker
Raw Normal View History

2019-02-11 05:05:43 +00:00
# ------------------------------------------------------------------------
2022-02-04 18:59:42 +00:00
from alpine:3.15
2019-02-11 05:05:43 +00:00
2022-02-04 18:59:42 +00:00
add alpine/alpine-minirootfs-3.15.0-x86_64.tar.gz /layer/
2019-02-11 05:05:43 +00:00
2022-02-04 18:59:42 +00:00
run apk update
run apk add -p /layer lvm2-static
2019-02-11 05:05:43 +00:00
workdir /layer
2022-02-04 18:59:42 +00:00
run rm -rf usr/share/apk var/cache/apk
#add build-layer /
#run /build-layer
2019-02-11 05:05:43 +00:00
2022-02-04 18:59:42 +00:00
copy dist/init /layer/init
2019-02-11 05:05:43 +00:00
entrypoint ["sh","-c","find |cpio -H newc -o |base64"]