Compare commits
3 Commits
b72c6865a0
...
03cb45afef
Author | SHA1 | Date |
---|---|---|
Gertjan Krol | 03cb45afef | |
Gertjan Krol | deb24bf985 | |
Gertjan Krol | 393d6ad666 |
|
@ -1,6 +1,6 @@
|
||||||
FROM alpine:3.15.5
|
FROM alpine:3.15.5
|
||||||
|
|
||||||
ARG UNBOUND_VERSION=1.17.0
|
ARG UNBOUND_VERSION=1.18.0
|
||||||
|
|
||||||
# Install dependencies and build unbound, clean up after
|
# Install dependencies and build unbound, clean up after
|
||||||
RUN apk --update add --no-cache alpine-sdk bison dns-root-hints expat-dev flex git openssl-dev && \
|
RUN apk --update add --no-cache alpine-sdk bison dns-root-hints expat-dev flex git openssl-dev && \
|
||||||
|
@ -20,11 +20,10 @@ RUN apk --update add --no-cache alpine-sdk bison dns-root-hints expat-dev flex g
|
||||||
COPY entrypoint.sh /srv/
|
COPY entrypoint.sh /srv/
|
||||||
COPY healthcheck.sh /srv/
|
COPY healthcheck.sh /srv/
|
||||||
|
|
||||||
## Prepare unbound
|
# Prepare unbound
|
||||||
RUN addgroup -S unbound
|
RUN addgroup -S unbound && adduser -S -G unbound unbound
|
||||||
RUN adduser -S -G unbound unbound
|
|
||||||
RUN mkdir -p /srv/unbound/conf
|
RUN mkdir -p /srv/unbound/conf
|
||||||
COPY unbound.conf /srv/unbound/unbound.conf
|
COPY unbound.conf /srv/unbound/unbound.conf
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=2s --retries=1 CMD sh /srv/healthcheck.sh
|
HEALTHCHECK --interval=10s --timeout=1s --retries=1 CMD sh /srv/healthcheck.sh
|
||||||
ENTRYPOINT ["sh", "/srv/entrypoint.sh"]
|
ENTRYPOINT ["sh", "/srv/entrypoint.sh"]
|
||||||
|
|
Loading…
Reference in New Issue