sysconfdir

This commit is contained in:
Wolfgang Hottgenroth 2021-10-27 13:36:34 +02:00
parent b070f17f28
commit 3a0b464b3d
Signed by: wn
GPG Key ID: E49AF3B9EF6DD469

View File

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