mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-25 21:53:06 +00:00
The following packages did not work on aarch64: - linuxkit/test-docker-bench - linuxkit/test-ltp - linuxkit/test-ns - linuxkit/test-virtsock Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
16 lines
669 B
Docker
16 lines
669 B
Docker
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 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 musl bash
|
|
|
|
ENV DOCKER_CHECK_CONFIG_COMMIT=72cda6a6c2f25854bea2d69168082684f2c9feca
|
|
ADD https://raw.githubusercontent.com/docker/docker/${DOCKER_CHECK_CONFIG_COMMIT}/contrib/check-config.sh /out/check-config.sh
|
|
ADD . ./out
|
|
|
|
RUN mkdir -p /out/lib/modules
|
|
|
|
FROM scratch
|
|
COPY --from=mirror /out /
|
|
ENTRYPOINT ["/bin/sh", "/check.sh"]
|
|
LABEL org.mobyproject.config='{"readonly": true, "binds": ["/lib/modules:/lib/modules", "/dev:/dev", "/sys:/sys"], "capabilities": ["all"]}'
|