Dockerfile 531 B

123456789101112131415161718
  1. FROM debian:buster-slim
  2. RUN apt update && \
  3. apt install -y git make gcc libssl-dev && \
  4. git clone https://github.com/pymumu/smartdns.git --depth 1 && \
  5. cd smartdns && \
  6. sh ./package/build-pkg.sh --platform debian --arch `dpkg --print-architecture` && \
  7. dpkg -i package/*.deb && \
  8. cd / && \
  9. rm -rf smartdns/ && \
  10. apt autoremove -y git make gcc libssl-dev && \
  11. apt clean && \
  12. rm -rf /var/lib/apt/lists/*
  13. EXPOSE 53/udp
  14. VOLUME "/etc/smartdns/"
  15. CMD ["/usr/sbin/smartdns", "-f"]