2020-10-15 12:19:41 +00:00
|
|
|
# This Docker image can change from one build to another, because the upstream
|
2020-11-03 23:46:23 +00:00
|
|
|
# Debian/Ubuntu package index is continuously updated and we have to run
|
|
|
|
# `apt-get update` in here.
|
2020-10-15 12:19:41 +00:00
|
|
|
#
|
|
|
|
# The only way to make this a part of our reproducible build system is to build
|
|
|
|
# it once, upload it to Docker Hub and make sure it's being pulled regularly so
|
|
|
|
# it's not deleted after 6 months of inactivity.
|
|
|
|
|
2021-01-07 09:19:29 +00:00
|
|
|
FROM arm64v8/ubuntu:20.04
|
2020-10-15 12:19:41 +00:00
|
|
|
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
|
2021-01-07 09:19:29 +00:00
|
|
|
ARG QEMU_NAME
|
|
|
|
ARG QEMU_DIR
|
|
|
|
|
|
|
|
# We need the host's registered binfmt_misc "interpreter" inside the container,
|
|
|
|
# for that transparent virtualisation to work.
|
|
|
|
COPY $QEMU_NAME $QEMU_DIR
|
|
|
|
|
|
|
|
# We delete the static Qemu binary when we're done with it, because it might
|
|
|
|
# not run on other systems. Let the child image copy it again.
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive TZ="Etc/UTC"
|
2020-10-15 12:19:41 +00:00
|
|
|
RUN apt-get -qq update \
|
2020-11-13 15:00:45 +00:00
|
|
|
&& apt-get -qq -y install build-essential git &>/dev/null \
|
2020-10-15 12:19:41 +00:00
|
|
|
&& apt-get -qq clean \
|
2021-01-07 09:19:29 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* "${QEMU_DIR}/${QEMU_NAME}"
|
2020-10-15 12:19:41 +00:00
|
|
|
|