mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-14 12:52:51 +00:00
19 lines
469 B
Docker
19 lines
469 B
Docker
FROM linuxkit/alpine:f3cd219615428b2bd943411723eb28875275fae7 AS mirror
|
|
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
|
RUN apk add --no-cache --initdb -p /out \
|
|
alpine-baselayout \
|
|
busybox \
|
|
dhcpcd \
|
|
musl
|
|
|
|
# Remove apk residuals
|
|
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
|
|
|
FROM scratch
|
|
ENTRYPOINT []
|
|
CMD []
|
|
WORKDIR /
|
|
COPY --from=mirror /out/ /
|
|
COPY /dhcpcd.conf /usr/ /
|
|
CMD ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf"]
|