-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathArch
31 lines (24 loc) · 997 Bytes
/
Arch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM archlinux:base-devel
LABEL maintainer rzlamrr <[email protected]>
ENV \
LANG=C.UTF-8 \
PATH=~/bin:/usr/local/bin:$PATH \
TZ=Asia/Jakarta
RUN pacman -Sy --noconfirm && pacman -S --noconfirm \
bc binutils \
coreutils curl git gcc \
python python2 openssh tar tzdata \
jq wget zip \
make pacman-contrib \
&& paccache -r
RUN curl -s https://api.github.com/repos/tcnksm/ghr/releases/latest \
| jq -r '.assets[] | select(.browser_download_url | contains("linux_amd64")) | .browser_download_url' | wget -qi - \
&& tar -xzf ghr_*_amd64.tar.gz --wildcards 'ghr*/ghr' --strip-components 1 \
&& mv ./ghr /usr/local/bin/ && rm -rf ghr_*_amd64.tar.gz \
&& cp /usr/local/bin/ghr /usr/local/bin/gh \
&& chmod a+x /usr/local/bin/ghr /usr/local/bin/gh
RUN echo "Asia/Jakarta" > /etc/timezone
COPY dvst.sh /etc/dvst.sh
RUN chmod a+x /etc/dvst.sh \
&& echo "source /etc/dvst.sh" >> /etc/bash.bashrc
HEALTHCHECK CMD curl -f http://localhost/ || exit 1