mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-13 16:12:57 +00:00
17 lines
490 B
Docker
17 lines
490 B
Docker
FROM linuxkit/alpine:3d57ded3edd54e616210cf0c17e3bc15eed9d03a 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 \
|
|
iperf3 \
|
|
iproute2 \
|
|
musl
|
|
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
|
|
|
FROM scratch
|
|
COPY --from=mirror /out/ /
|
|
COPY netns.sh runp.sh /
|
|
|
|
LABEL org.mobyproject.config='{"pid": "host", "net":"host", "binds": ["/dev:/dev","/sys:/sys"], "capabilities": ["all"]}'
|
|
|