Files

74 lines
2.3 KiB
Docker
Raw Permalink Normal View History

2025-07-12 14:09:19 +02:00
ARG QtVersion=v6.8.3
2022-09-15 00:24:08 +02:00
FROM archlinux:latest
ARG QtVersion
LABEL org.opencontainers.image.title="Flowee Android Build Environment"
LABEL org.opencontainers.image.description="Official containerd package of all tools and libraries needed to build for Android aarch64 devices. Uses ArchLinux base with all the libraries needed for Flowee Pay."
LABEL org.opencontainers.image.authors="Tom <tom@flowee.org>"
LABEL org.opencontainers.image.url="http://bitcoincashcode.org/Flowee/pay/src/branch/master/android/docker/README.md"
LABEL org.opencontainers.image.documentation=""
LABEL org.opencontainers.image.source="http://bitcoincashcode.org/Flowee/pay/src/branch/master/android/docker/README.md"
LABEL org.opencontainers.image.licenses="GPL-3.0-or-later"
2025-08-02 15:04:47 +02:00
LABEL org.opencontainers.image.version="${QtVersion}"
#unset variables set by the one we inherit
LABEL org.opencontainers.image.revision=""
LABEL org.opencontainers.image.created=""
2022-09-16 17:53:53 +02:00
ENTRYPOINT ["su", "-", "builduser", "-c"]
2022-09-15 00:24:08 +02:00
2025-11-15 22:16:45 +01:00
ADD scripts /usr/local/bin
2022-09-15 00:24:08 +02:00
# for europe you might want to copy your local mirrorlist
2024-12-16 10:42:28 +01:00
#copy mirrorlist /etc/pacman.d/
2022-11-10 20:15:37 +01:00
RUN useradd builduser -d /home/builds -m -u 1000 -U \
&& pacman -Suy --noconfirm --noprogressbar \
&& pacman -Sy --noconfirm --noprogressbar --needed base-devel \
2022-09-15 00:24:08 +02:00
cmake \
ninja \
git \
python \
libjpeg-turbo \
xcb-util-keysyms \
xcb-util-cursor \
libgl \
fontconfig \
xdg-utils \
shared-mime-info \
xcb-util-wm \
libxrender \
libxi \
sqlite \
mesa \
vulkan-headers \
tslib \
libinput \
libxkbcommon-x11 \
libproxy \
libcups \
double-conversion \
brotli \
libb2 \
md4c \
wget \
2023-06-19 22:56:33 +02:00
libc++ \
libxcrypt-compat \
jdk17-openjdk \
2022-09-16 17:53:53 +02:00
&& pacman -Sc --noconfirm \
&& rm -rf /var/cache/pacman/pkg/* \
&& /usr/local/bin/createRootPwd
2022-09-15 11:58:32 +02:00
# to enable caching, check the README.md
2022-11-10 20:15:37 +01:00
#add cache /usr/local/cache/
2022-09-16 17:53:53 +02:00
RUN mkdir -p /usr/local/cache \
&& git config --global advice.detachedHead false \
&& /usr/local/bin/aurs.sh \
&& rm -rf ~builduser/* \
&& /usr/local/bin/buildOpenSsl.sh \
&& rm -rf ~builduser/* \
&& /usr/local/bin/buildQt.sh ${QtVersion} \
&& rm -rf ~builduser/* \
&& /usr/local/bin/buildBoost.sh \
&& rm -rf ~builduser/* \
&& /usr/local/bin/buildZXing.sh \
&& rm -rf ~builduser/* \
2022-11-10 20:15:37 +01:00
&& rm -rf /usr/local/cache