From 5b69eacdd563ea2ce9ecfbbd93e5e01a69622af1 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 30 Jan 2020 11:30:13 -0800 Subject: [PATCH] Don't copy extra qemu files --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index dd3a9f6..29134b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,12 @@ ARG REPO=library FROM multiarch/qemu-user-static:4.2.0-2 as qemu-user-static +# Make sure a dummy x86_64 file exists so that the copy command doesn't error +RUN touch /usr/bin/qemu-x86_64-fake + FROM ${REPO}/alpine:3.10 # Copying all qemu files because amd64 doesn't exist and cannot condional copy -COPY --from=qemu-user-static /usr/bin/qemu-* /usr/bin/ +COPY --from=qemu-user-static /usr/bin/qemu-${ARCH}-* /usr/bin/ RUN mkdir /app WORKDIR /app/