-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (24 loc) · 1 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
FROM alpine:latest
RUN apk --no-cache --update add ca-certificates libcap tzdata curl && \
rm -rf /var/cache/apk/* && \
mkdir -p /opt/adguardhome/work && \
curl -L -o adguard.tar.gz https://github.com/AdguardTeam/AdGuardHome/releases/latest/download/AdGuardHome_linux_amd64.tar.gz && \
curl -L -o AdGuardHome.yaml https://raw.githubusercontent.com/fucktimi/adguardhome-docker/main/AdGuardHome.yaml && \
tar -xvzf adguard.tar.gz && \
cp -r /AdGuardHome/AdGuardHome /opt/adguardhome/ && \
cp -r AdGuardHome.yaml /opt/adguardhome/AdGuardHome.yaml && \
chown -R nobody /opt/adguardhome && \
chmod +x /opt/adguardhome/AdGuardHome && \
rm -rf AdGuardHome && \
rm -rf adguard.tar.gz && \
rm -rf AdGuardHome.yaml && \
setcap 'cap_net_bind_service=+eip' /opt/adguardhome/AdGuardHome
EXPOSE 5335/udp 3030/tcp
WORKDIR /opt/adguardhome/work
ENTRYPOINT ["/opt/adguardhome/AdGuardHome"]
CMD [ \
"--no-check-update", \
"-c", "/opt/adguardhome/AdGuardHome.yaml", \
"-h", "0.0.0.0", \
"-w", "/opt/adguardhome/work" \
]