fixes
This commit is contained in:
parent
e0f8875aa7
commit
9e0b95e1df
12
Dockerfile
12
Dockerfile
@ -8,12 +8,11 @@ RUN \
|
|||||||
apk add openssl-dev && \
|
apk add openssl-dev && \
|
||||||
apk add expat-dev && \
|
apk add expat-dev && \
|
||||||
apk add libevent-dev && \
|
apk add libevent-dev && \
|
||||||
apk add libsodium-dev && \
|
|
||||||
mkdir build && \
|
mkdir build && \
|
||||||
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-libsodium --with-libnghttp2 --with-libevent --enable-sha2 --enable-dnscrypt --prefix /opt/unbound && \
|
./configure --with-libnghttp2 --with-libevent --prefix /opt/unbound && \
|
||||||
make && \
|
make && \
|
||||||
make install
|
make install
|
||||||
|
|
||||||
@ -27,20 +26,19 @@ 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 && \
|
||||||
apk add --no-cache libsodium && \
|
|
||||||
adduser -D unbound && \
|
adduser -D unbound && \
|
||||||
|
mkdir /etc/unbound && \
|
||||||
mv /opt/unbound/etc/unbound/unbound.conf /opt/unbound/etc/unbound/unbound.conf-dist && \
|
mv /opt/unbound/etc/unbound/unbound.conf /opt/unbound/etc/unbound/unbound.conf-dist && \
|
||||||
ln -s /opt/unbound/etc/unbound /etc/unbound
|
|
||||||
|
|
||||||
COPY unbound.conf /opt/unbound/etc/unbound/unbound.conf
|
COPY unbound.conf /etc/unbound/unbound.conf
|
||||||
|
|
||||||
EXPOSE 53/udp
|
EXPOSE 53/udp
|
||||||
EXPOSE 53/tcp
|
EXPOSE 53/tcp
|
||||||
EXPOSE 853/tcp
|
EXPOSE 853/tcp
|
||||||
|
|
||||||
VOLUME /opt/unbound/etc/unbound
|
VOLUME /etc/unbound
|
||||||
|
|
||||||
CMD [ "/opt/unbound/sbin/unbound" ]
|
CMD [ "/opt/unbound/sbin/unbound", "-c", "/etc/unbound/unbound.conf" ]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user