2019-06-05 00:28:26 +00:00
|
|
|
# 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
|
2019-03-09 01:12:03 +00:00
|
|
|
ARG REPO=library
|
|
|
|
FROM ${REPO}/python:3-alpine
|
|
|
|
|
2019-06-05 00:28:26 +00:00
|
|
|
# This should be the target qemu arch
|
2019-03-09 01:12:03 +00:00
|
|
|
ARG ARCH=x86_64
|
2019-03-10 22:14:56 +00:00
|
|
|
COPY ./build/qemu-${ARCH}-static /usr/bin/
|
2019-03-09 01:12:03 +00:00
|
|
|
|
2019-06-05 00:28:26 +00:00
|
|
|
# Everything below here is just a simple example
|
|
|
|
|
2019-03-09 01:12:03 +00:00
|
|
|
RUN echo "OK" > /foo
|
|
|
|
|
|
|
|
CMD [ "cat", "/foo" ]
|