blob: efa95a4bb81976c8f73ffa268a7e6ff90969a008 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
FROM archlinux:latest
# Install necessary packages for the script
RUN pacman-key init
RUN pacman -Syu --noconfirm \
&& pacman -S --noconfirm \
git \
wget \
openssh \
&& rm -rf /var/cache/pacman/pkg/*
# Set git user configuration
RUN git config --global user.name "AUR PublisherBot" \
&& git config --global user.email "benjamin+aur_release@chausse.xyz"
# Set the working directory to /root
WORKDIR /root
# Copy the update_aur.sh script to /usr/local/bin and set it as the entrypoint
COPY update_aur.sh /usr/local/bin/update_aur.sh
RUN chmod +x /usr/local/bin/update_aur.sh
# Set the script as the ENTRYPOINT (or CMD if you prefer)
ENTRYPOINT ["/usr/local/bin/update_aur.sh"]
|