arch-repo-builder/Dockerfile
Knut Ahlers e04f071250
Pre-populate image with my repo-signing-key
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-02-28 00:29:54 +01:00

26 lines
902 B
Docker

FROM luzifer/archlinux:latest
RUN set -ex \
&& pacman -Sy \
&& pacman -S --noconfirm --needed \
base-devel \
curl \
git \
&& useradd -m -u 1000 builder \
&& echo "builder ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/builder \
&& pacman-key --init \
&& pacman-key --keyserver hkp://keyserver.ubuntu.com -r 6F73A4F39CDF652E3F944142085AA223D0391BF9 \
&& pacman-key --lsign-key 6F73A4F39CDF652E3F944142085AA223D0391BF9 \
&& curl -sSfLo /usr/local/bin/dumb-init "https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64" \
&& curl -sSfLo /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64" \
&& chmod 0755 \
/usr/local/bin/dumb-init \
/usr/local/bin/gosu
VOLUME ["/src", "/repo", "/config"]
WORKDIR /src
COPY run.sh /usr/local/bin/
COPY getkeys.sh /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/run.sh"]