initial support for arm/arm64 containers

Issue https://github.com/termux/termux-docker/issues/9.

System components are imported from Android 9 GSI (aarch64).
This commit is contained in:
Leonid Pliushch
2021-02-15 23:02:48 +02:00
parent 1852dc629e
commit d616bfb0b6
66 changed files with 1434 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ FROM scratch
ARG BOOTSTRAP_VERSION=2021.02.11-r1
ARG BOOTSTRAP_ARCH=i686
ARG SYSTEM_TYPE=x86
ENV ANDROID_DATA /data
ENV ANDROID_ROOT /system
@@ -18,7 +19,7 @@ SHELL ["/system/bin/sh", "-c"]
# Bootstrapping Termux environment.
ADD https://github.com/termux/termux-packages/releases/download/bootstrap-$BOOTSTRAP_VERSION/bootstrap-$BOOTSTRAP_ARCH.zip /data/data/com.termux/files/bootstrap.zip
COPY /system /system
COPY /system/$SYSTEM_TYPE /system
RUN /system/setup-termux.sh
# Switch to Termux environment.