diff --git a/Dockerfile b/Dockerfile index 46a9dc0..1faf489 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,12 +17,14 @@ RUN apk --update add --no-cache alpine-sdk bison dns-root-hints expat-dev flex g apk del alpine-sdk bison expat-dev flex git openssl-dev # Prepare image -COPY entrypoint.sh / +COPY entrypoint.sh /srv/ COPY healthcheck.sh /srv/ ## Prepare unbound +RUN addgroup -S unbound +RUN adduser -S -G unbound unbound RUN mkdir -p /srv/unbound/conf COPY unbound.conf /srv/unbound/unbound.conf HEALTHCHECK --interval=30s --timeout=2s --retries=1 CMD sh /srv/healthcheck.sh -ENTRYPOINT ["sh", "/entrypoint.sh"] +ENTRYPOINT ["sh", "/srv/entrypoint.sh"]