-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (48 loc) · 1.4 KB
/
Dockerfile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
ARG TSVERSION=1.76.6
ARG SC_VERSION=0.2.30
ARG OM_VERSION=2.5.1
FROM adguard/adguardhome:latest
ARG TSVERSION
ARG SC_VERSION
ARG OM_VERSION
ARG SC_FILE=supercronic-linux-amd64
ARG TSFILE=tailscale_${TSVERSION}_amd64.tgz
ARG OM_FILE=overmind-v${OM_VERSION}-linux-amd64.gz
WORKDIR /
COPY . .
RUN apk add --no-cache \
tar \
gzip \
restic \
ca-certificates \
openssl \
tzdata \
iptables \
ip6tables \
iputils-ping \
tmux \
msmtp \
mailx \
tini \
&& wget https://pkgs.tailscale.com/stable/${TSFILE} \
&& tar xzf ${TSFILE} --strip-components=1 \
&& rm -rf ${TSFILE} \
&& mv tailscaled /usr/local/bin/tailscaled \
&& mv tailscale /usr/local/bin/tailscale \
&& wget https://github.com/aptible/supercronic/releases/download/v${SC_VERSION}/${SC_FILE} \
&& chmod +x ${SC_FILE} \
&& mv ${SC_FILE} /usr/local/bin/supercronic \
&& wget https://github.com/DarthSim/overmind/releases/download/v${OM_VERSION}/${OM_FILE} \
&& gunzip -d ${OM_FILE} \
&& chmod +x overmind-v${OM_VERSION}-linux-amd64 \
&& mv overmind-v${OM_VERSION}-linux-amd64 /usr/local/bin/overmind \
&& rm -rf ${OM_FILE} \
&& apk del tar gzip \
&& chmod +x /entrypoint.sh
HEALTHCHECK \
--interval=30s \
--timeout=10s \
--retries=3 \
CMD [ "/opt/adguardhome/scripts/healthcheck.sh" ]
ENTRYPOINT [ "/sbin/tini", "-s", "--", "/entrypoint.sh" ]
USER root