multiarch-pipeline-test/Dockerfile
Ian Fijolek 7b99514459
Some checks failed
continuous-integration/drone/push Build is failing
Ok. Up a dir?
2020-01-30 15:53:13 -08:00

22 lines
600 B
Docker

# First build arg is to ensure pulling the image from the correct repository
# The following will work with any library image that supports multi-arch
# Other repositories may use tag suffix instead
ARG REPO=library
FROM multiarch/qemu-user-static:4.2.0-2 as qemu-user-static
RUN ls -al /usr
RUN ls -al /usr/bin
RUN touch /usr/bin/dummy
RUN ls -al /usr/bin
FROM ${REPO}/python:3-alpine
# This should be the target qemu arch
ARG ARCH=x86_64
COPY --from=qemu-user-static /usr/bin/qemu-${ARCH}-* /usr/bin/
# Everything below here is just a simple example
RUN echo "OK" > /foo
CMD [ "cat", "/foo" ]