diff --git a/Dockerfile b/Dockerfile index 157e967..83a3c7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ RUN \ cd build && \ git clone https://github.com/NLnetLabs/unbound.git && \ cd unbound && \ - ./configure --with-libnghttp2 --with-libevent --prefix /opt/unbound && \ + ./configure --with-libnghttp2 --with-libevent --prefix /opt/unbound --sysconfdir /etc && \ make && \ make install @@ -26,9 +26,7 @@ RUN \ apk add --no-cache nghttp2-libs && \ apk add --no-cache expat && \ apk add --no-cache libevent && \ - adduser -D unbound && \ - mkdir /etc/unbound && \ - mv /opt/unbound/etc/unbound/unbound.conf /opt/unbound/etc/unbound/unbound.conf-dist + adduser -D unbound COPY unbound.conf /etc/unbound/unbound.conf @@ -38,7 +36,7 @@ EXPOSE 853/tcp VOLUME /etc/unbound -CMD [ "/opt/unbound/sbin/unbound", "-c", "/etc/unbound/unbound.conf" ] +CMD [ "/opt/unbound/sbin/unbound" ]