This repository has been archived on 2025-06-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
server/fickit-pkg/mdadm/Dockerfile

13 lines
325 B
Docker

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 \
busybox \
mdadm
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
FROM scratch
COPY --from=mirror /out/ /
RUN rm -f /etc/init.d/*
COPY etc/ /etc/
CMD ["/sbin/mdadm", "--monitor", "--scan"]