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:17:58 +01:00
|
|
|
COPY lune-bin/ /home/builder/packages/lune-bin
|
|
|
|
COPY lune-git/ /home/builder/packages/lune-git
|
|
|
|
COPY lune/ /home/builder/packages/lune
|
2023-08-01 06:47:11 +01:00
|
|
|
|
|
|
|
COPY ./entrypoint.sh /home/builder/packages/entrypoint.sh
|
|
|
|
|
2023-08-01 07:03:30 +01:00
|
|
|
RUN chown -R builder:builder /home/builder/packages && \
|
2023-08-01 07:06:48 +01:00
|
|
|
chmod 600 /home/builder/packages/* -R && \
|
2023-08-01 07:19:48 +01:00
|
|
|
chown -R builder:builder /home/builder/packages/lune-bin && \
|
|
|
|
chmod 600 /home/builder/packages/lune-bin -R && \
|
|
|
|
chown -R builder:builder /home/builder/packages/lune-git && \
|
|
|
|
chmod 600 /home/builder/packages/lune-git -R && \
|
|
|
|
chown -R builder:builder /home/builder/packages/lune && \
|
|
|
|
chmod 600 /home/builder/packages/lune -R && \
|
2023-08-01 07:06:48 +01:00
|
|
|
chmod +x /home/builder/packages/*.sh
|
2023-08-01 06:47:11 +01:00
|
|
|
|
|
|
|
USER builder
|
|
|
|
WORKDIR /home/builder/packages
|
|
|
|
|
2023-08-01 07:10:09 +01:00
|
|
|
RUN ls /home/builder/packages
|
|
|
|
|
2023-08-01 06:47:11 +01:00
|
|
|
ENTRYPOINT ["/home/builder/packages/entrypoint.sh"]
|