File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM debian:buster AS builder
22
33# Download QEMU, see https://github.com/docker/hub-feedback/issues/1261
4- ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz
54RUN apt-get update && apt-get install -y --no-install-recommends \
65 ca-certificates \
76 curl \
87 apt-utils \
98 && rm -rf /var/lib/apt/lists/* \
10- && apt -qyy clean && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1
11- RUN mv ./qemu-arm-static /usr/bin/qemu-arm-static
9+ && apt -qyy clean
10+ RUN export QEMU_USER_STATIC_LATEST_TAG=$(curl -s https://api.github.com/repos/multiarch/qemu-user-static/tags \
11+ | grep 'name.*v[0-9]' | head -n 1 | cut -d '"' -f 4) && \
12+ curl -SL "https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_USER_STATIC_LATEST_TAG}/x86_64_qemu-arm-static.tar.gz" \
13+ | tar xzv --directory /go/bin
1214
1315FROM arm32v7/debian
1416
17+ COPY --from=builder /go/bin/qemu-arm-static /usr/bin/
18+
1519MAINTAINER Guy Sheffer <guysoft at gmail dot com>
1620
1721RUN set -x \
You can’t perform that action at this time.
0 commit comments