2019-01-17 06:38:47 +00:00
|
|
|
FROM alpine AS mirror
|
|
|
|
|
|
|
|
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
|
|
|
RUN apk add --no-cache --initdb -p /out \
|
2019-12-16 13:36:55 +00:00
|
|
|
busybox \
|
2019-01-17 06:38:47 +00:00
|
|
|
mdadm
|
|
|
|
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=mirror /out/ /
|
2023-12-15 16:36:33 +00:00
|
|
|
RUN rm -f /etc/init.d/*
|
2019-01-17 06:38:47 +00:00
|
|
|
COPY etc/ /etc/
|
|
|
|
CMD ["/sbin/mdadm", "--monitor", "--scan"]
|