dns_server: optimize code

This commit is contained in:
Nick Peng
2022-06-12 16:11:25 +08:00
parent 09dc2e9275
commit 995bee4088
2 changed files with 29 additions and 18 deletions

View File

@@ -1,15 +1,15 @@
FROM ubuntu:latest as smartdns-builder
COPY . /smartdns/
RUN apt update && \
apt install -y make gcc libssl-dev && \
cd smartdns && \
sh ./package/build-pkg.sh --platform debian --arch `dpkg --print-architecture`
RUN apt update && \
apt install -y make gcc libssl-dev && \
cd smartdns && \
sh ./package/build-pkg.sh --platform debian --arch `dpkg --print-architecture`
FROM ubuntu:latest
COPY --from=smartdns-builder /smartdns/package/*.deb /opt/
RUN dpkg -i /opt/*.deb && \
rm /opt/*deb -fr
rm /opt/*.deb -fr
EXPOSE 53/udp
VOLUME "/etc/smartdns/"