sysconfdir
This commit is contained in:
parent
b070f17f28
commit
3a0b464b3d
@ -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" ]
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user