added tini and entrypoint script
This commit is contained in:
parent
c6af6a69eb
commit
c1cd0ea0d4
@ -2,7 +2,7 @@ FROM alpine:latest
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apk --update upgrade && \
|
apk --update upgrade && \
|
||||||
apk add unbound bind-tools && \
|
apk add unbound bind-tools tini && \
|
||||||
wget -O /etc/unbound/named.cache ftp://ftp.internic.net//domain/named.cache
|
wget -O /etc/unbound/named.cache ftp://ftp.internic.net//domain/named.cache
|
||||||
|
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
@ -10,4 +10,4 @@ COPY rootfs /
|
|||||||
HEALTHCHECK --interval=30s --start-period=5s --timeout=10s \
|
HEALTHCHECK --interval=30s --start-period=5s --timeout=10s \
|
||||||
CMD /usr/bin/host -T -p 1053 asperti.com 127.0.0.1
|
CMD /usr/bin/host -T -p 1053 asperti.com 127.0.0.1
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/sbin/unbound", "-d"]
|
ENTRYPOINT ["/sbin/tini", "--", "/bin/sh", "/app/entrypoint.sh"]
|
||||||
|
5
rootfs/app/entrypoint.sh
Executable file
5
rootfs/app/entrypoint.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/usr/sbin/unbound -d
|
Loading…
x
Reference in New Issue
Block a user