2021-08-04 18:36:37 +02:00
FROM archlinux:base-devel
RUN pacman -Syu --noconfirm \
python python-pip \
2021-08-17 20:47:14 +02:00
arch-install-scripts rsync \
2021-08-04 18:36:37 +02:00
aarch64-linux-gnu-gcc aarch64-linux-gnu-binutils aarch64-linux-gnu-glibc aarch64-linux-gnu-linux-api-headers \
2021-08-05 20:26:48 +02:00
git \
2021-08-17 20:47:14 +02:00
android-tools openssh inetutils
2021-08-04 18:36:37 +02:00
RUN sed -i "s/EUID == 0/EUID == -1/g" $(which makepkg)
RUN cd /tmp && \
git clone https://aur.archlinux.org/aarch64-linux-gnu-pkg-config.git && \
cd aarch64-linux-gnu-pkg-config && \
makepkg -s --skippgpcheck && \
pacman -U --noconfirm *.pkg*
RUN yes | pacman -Scc
RUN sed -i "s/SigLevel.*/SigLevel = Never/g" /etc/pacman.conf
ENV KUPFERBOOTSTRAP_DOCKER=1
2021-08-08 13:15:48 +02:00
ENV PATH=/app/bin:/app/local/bin:$PATH
2021-08-04 18:36:37 +02:00
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
2021-10-10 18:25:55 +02:00
RUN python -c "import constants; repos='\n'.join(['\n'.join(['', f'[{repo}]', f'Server = file:///prebuilts/\$arch/\$repo']) for repo in constants.REPOSITORIES]); print(repos)" | tee -a /etc/pacman.conf
2021-09-18 17:28:27 +02:00
2021-10-17 13:48:37 +02:00
WORKDIR /