lune-packaging/test/aur/Dockerfile

30 lines
842 B
Text
Raw Normal View History

2023-08-01 06:47:11 +01:00
FROM archlinux:base-devel
RUN pacman --needed --noconfirm -Syu \
base \
git \
pacman-contrib
RUN useradd -m builder && \
echo "builder ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers && \
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers && \
usermod -a -G wheel builder
RUN mkdir -p /home/builder/.ssh && \
touch /home/builder/.ssh/known_hosts
2023-08-01 07:01:54 +01:00
COPY lune-bin/ lune-git/ lune/ /home/builder/packages/
2023-08-01 06:47:11 +01:00
COPY ./entrypoint.sh /home/builder/packages/entrypoint.sh
RUN chown -R builder:builder /home/builder/.ssh && \
chmod 600 /home/builder/.ssh/* -R && \
chown -R builder:builder /home/builder/packages && \
chmod 600 /home/builder/packages/* -R && \
chmod +x /home/builder/packages/*.ssh
USER builder
WORKDIR /home/builder/packages
ENTRYPOINT ["/home/builder/packages/entrypoint.sh"]