mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 01:06:27 +00:00
* Update linuxkit/alpine Signed-off-by: Avi Deitcher <avi@deitcher.net> * tools/alpine: Update to latest Signed-off-by: Avi Deitcher <avi@deitcher.net> * tools: Update to the latest linuxkit/alpine Signed-off-by: Avi Deitcher <avi@deitcher.net> * Update use of tools to latest Signed-off-by: Avi Deitcher <avi@deitcher.net> * tests: Update packages to the latest linuxkit/alpine Signed-off-by: Avi Deitcher <avi@deitcher.net> * Update use of test packages to latest Signed-off-by: Avi Deitcher <avi@deitcher.net> * pkgs: Update packages to the latest linuxkit/alpine Signed-off-by: Avi Deitcher <avi@deitcher.net> * Update package tags Signed-off-by: Avi Deitcher <avi@deitcher.net> --------- Signed-off-by: Avi Deitcher <avi@deitcher.net>
29 lines
1.1 KiB
Docker
29 lines
1.1 KiB
Docker
# Use Debian testing Qemu 4.2.0 until https://bugs.alpinelinux.org/issues/8131 is resolved.
|
|
FROM debian@sha256:d828cca5497a2519da9c6d42372066895fa28a69f1e8a46a38ce8f750bd2adf0 AS qemu
|
|
RUN apt-get update && apt-get install -y qemu-user-static && \
|
|
mv /usr/bin/qemu-aarch64-static /usr/bin/qemu-aarch64 && \
|
|
mv /usr/bin/qemu-arm-static /usr/bin/qemu-arm && \
|
|
mv /usr/bin/qemu-ppc64le-static /usr/bin/qemu-ppc64le && \
|
|
mv /usr/bin/qemu-s390x-static /usr/bin/qemu-s390x && \
|
|
mv /usr/bin/qemu-riscv64-static /usr/bin/qemu-riscv64 && \
|
|
mv /usr/bin/qemu-loongarch64-static /usr/bin/qemu-loongarch64 && \
|
|
rm /usr/bin/qemu-*-static
|
|
|
|
FROM linuxkit/alpine:35b33c6b03c40e51046c3b053dd131a68a26c37a AS mirror
|
|
|
|
RUN apk add --no-cache go musl-dev
|
|
ENV GOPATH=/go PATH=$PATH:/go/bin
|
|
ARG GOPKGVERSION
|
|
ENV ldflags="-X main.Version=$GOPKGVERSION"
|
|
|
|
COPY . /go/src/binfmt/
|
|
RUN go-compile.sh /go/src/binfmt
|
|
|
|
FROM scratch
|
|
ENTRYPOINT []
|
|
WORKDIR /
|
|
COPY --from=qemu usr/bin/qemu-* usr/bin/
|
|
COPY --from=mirror /go/bin/binfmt usr/bin/binfmt
|
|
COPY etc/binfmt.d/00_linuxkit.conf etc/binfmt.d/00_linuxkit.conf
|
|
CMD ["/usr/bin/binfmt"]
|