Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Termux docker 49 #1

Merged
merged 2 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,14 @@ RUN busybox chown -Rh 0:0 /system && \
busybox find ./bin ./lib/apt ./libexec -type f -exec busybox chmod 700 "{}" \;

# Install updates and cleanup when not building for arm/i686.
ENV ANDROID_DATA /data
ENV ANDROID_ROOT /system
ENV PATH /data/data/com.termux/files/usr/bin
RUN if [[ ${BOOTSTRAP_ARCH} == 'arm' || ${BOOTSTRAP_ARCH} == 'i686' ]]; then exit; else \
/system/bin/mksh -T /dev/ptmx -c "/system/bin/dnsmasq -u root -g root --pid-file /dnsmasq.pid" && sleep 1 && \
su - system -c "/data/data/com.termux/files/usr/bin/apt update" && \
su - system -c "/data/data/com.termux/files/usr/bin/apt upgrade -o Dpkg::Options::=--force-confnew -yq" && \
rm -rf /data/data/com.termux/files/usr/var/lib/apt/* && \
rm -rf /data/data/com.termux/files/usr/var/log/apt/* && \
rm -rf /data/data/com.termux/cache/apt/* ;\
RUN if [[ ${SYSTEM_TYPE} == 'arm' || ${BOOTSTRAP_ARCH} == 'i686' ]]; then exit; else \
/system/bin/mksh -c "/system/bin/dnsmasq -u root -g root --pid-file /dnsmasq.pid" && sleep 1 && \
su -l system -c "ANDROID_DATA=/data ANDROID_ROOT=/system apt update" && \
su -l system -c "ANDROID_DATA=/data ANDROID_ROOT=/system apt upgrade -o Dpkg::Options::=--force-confnew -yq" && \
rm -rf /data/data/com.termux/files/usr/var/lib/apt/* && \
rm -rf /data/data/com.termux/files/usr/var/log/apt/* && \
rm -rf /data/data/com.termux/cache/apt/* ;\
fi

##############################################################################
Expand Down
Binary file modified system/arm/bin/dnsmasq
Binary file not shown.
Binary file modified system/arm/bin/mksh
Binary file not shown.
Binary file modified system/arm/lib/libcutils.so
Binary file not shown.
Binary file modified system/x86/bin/dnsmasq
Binary file not shown.
Binary file modified system/x86/bin/mksh
Binary file not shown.
Binary file modified system/x86/lib/libcutils.so
Binary file not shown.