Stop copying extra qemu files
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
IamTheFij 2020-01-21 17:52:45 -08:00
parent b11d6f6d88
commit 6ac78cbe89

View File

@ -1,10 +1,14 @@
ARG REPO=library
FROM multiarch/qemu-user-static:4.1.0-1 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}/python:3-alpine
# TODO: Copy from docker hub image
# Copy mutliarch file to run builds on x86_64
ARG ARCH=x86_64
COPY --from=qemu-user-static /usr/bin/qemu-* /usr/bin/
COPY --from=qemu-user-static /usr/bin/qemu-${ARCH}-* /usr/bin/
RUN mkdir -p /src
WORKDIR /src