mirror of
https://github.com/built-aur/packages
synced 2024-08-14 23:01:15 +00:00
25 lines
774 B
Docker
25 lines
774 B
Docker
FROM ghcr.io/archlinux-pkg/packages:latest
|
|
|
|
ARG PACKAGE
|
|
ENV PACKAGE=$PACKAGE
|
|
|
|
COPY scripts/long-built/build.sh /home/build/build.sh
|
|
|
|
# Expect archive with files required for building created by makepkg --allsource
|
|
COPY *.src.tar.gz /home/build/
|
|
|
|
RUN chown -R build /home/build
|
|
RUN tar xf /home/build/*.src.tar.gz -C /home/build --strip 1 && rm /home/build/*.src.tar.gz
|
|
|
|
RUN pacman -Syu --noconfirm && \
|
|
su -c "cd && makepkg --nobuild --noextract --syncdeps --noconfirm" build && \
|
|
su -c "cd && makepkg --nobuild --noextract --syncdeps --noconfirm" build && \
|
|
su -c "cd && makepkg --nobuild --noextract --syncdeps --noconfirm" build
|
|
|
|
RUN ls -lah /home/build
|
|
|
|
RUN echo $(date +"%s") > /etc/buildtime
|
|
|
|
USER build
|
|
|
|
ENTRYPOINT [ "/bin/bash", "/home/build/build.sh" ]
|