Skip to content

Commit 5d549bd

Browse files
committed
Try to upgrade to qemu v4
1 parent befa4e7 commit 5d549bd

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/Dockerfile.arm32v7

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
FROM 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
54
RUN 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

1315
FROM arm32v7/debian
1416

17+
COPY --from=builder /go/bin/qemu-arm-static /usr/bin/
18+
1519
MAINTAINER Guy Sheffer <guysoft at gmail dot com>
1620

1721
RUN set -x \

0 commit comments

Comments
 (0)