2019-02-14 19:49:57 +00:00
|
|
|
FROM luzifer/archlinux:latest
|
2018-11-10 13:25:53 +00:00
|
|
|
|
|
|
|
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 \
|
2020-02-27 23:16:21 +00:00
|
|
|
&& echo "keyserver hkp://pool.sks-keyservers.net" >>/etc/pacman.d/gnupg/gpg.conf \
|
2018-11-10 13:25:53 +00:00
|
|
|
&& 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
|
|
|
|
|
2018-11-17 19:14:14 +00:00
|
|
|
VOLUME ["/src", "/repo", "/config"]
|
2018-11-10 13:25:53 +00:00
|
|
|
WORKDIR /src
|
|
|
|
|
|
|
|
COPY run.sh /usr/local/bin/
|
2019-04-04 16:09:42 +00:00
|
|
|
COPY getkeys.sh /usr/local/bin/
|
2018-11-10 13:25:53 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/run.sh"]
|