-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
34 lines (24 loc) · 865 Bytes
/
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
FROM extremeshok/baseimage-alpine:latest AS BUILD
LABEL mantainer="Adrian Kriel <[email protected]>" vendor="eXtremeSHOK.com"
RUN echo "**** Install Packages ****" \
&& apk add --update --no-cache \
drill \
openssl \
tzdata \
unbound
# add local files
COPY rootfs/ /
RUN echo "**** configure ****" \
&& adduser unbound tty \
&& chown root:unbound /etc/unbound \
&& chmod 775 /etc/unbound
RUN echo "**** Correct permissions ****" \
&& chmod 755 /etc/services.d/*/run \
&& chmod 755 /xshok-*.sh
WORKDIR /tmp/
EXPOSE 53/udp 53/tcp 8953/tcp
# "when the SIGTERM signal is sent, it immediately quits and all established connections are closed"
# "graceful stop is triggered when the SIGUSR1 signal is sent "
#STOPSIGNAL SIGUSR1
HEALTHCHECK --interval=5s --timeout=5s CMD nslookup healthcheck.unbound.local 127.0.0.1
ENTRYPOINT ["/init"]