multiarch-pipeline-test/Dockerfile
Ian Fijolek 122523e9cd
Some checks failed
continuous-integration/drone/push Build is failing
Download qemu in container
2019-03-10 15:00:31 -07:00

20 lines
529 B
Docker

ARG REPO=library
FROM ${REPO}/python:3-alpine
ARG ARCH=x86_64
ARG HOST_ARCH=x86_64
ARG QEMU_VERSION=v2.9.1-1
RUN [ $ARCH == $HOST_ARCH ] || { \
wget https://github.com/multiarch/qemu-user-static/releases/download/${QEMU_VERSION}/${HOST_ARCH}_qemu-${ARCH}-static.tar.gz && \
tar -xvf ${HOST_ARCH}_qemu-${ARCH}-static.tar.gz && \
rm ${HOST_ARCH}_qemu-${ARCH}-static.tar.gz && \
mv qemu-${ARCH}-static /usr/bin/ ; \
}
RUN echo "OK" > /foo
CMD [ "cat", "/foo" ]