Dockerfile 914 B

123456789101112131415161718192021222324252627282930313233343536
  1. FROM mcr.microsoft.com/dotnet/aspnet:7.0
  2. LABEL product="Technitium DNS Server"
  3. LABEL vendor="Technitium"
  4. LABEL email="support@technitium.com"
  5. LABEL project_url="https://technitium.com/dns/"
  6. LABEL github_url="https://github.com/TechnitiumSoftware/DnsServer"
  7. WORKDIR /opt/technitium/dns/
  8. RUN apt update; apt install curl -y; \
  9. curl https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb --output packages-microsoft-prod.deb; \
  10. dpkg -i packages-microsoft-prod.deb; \
  11. rm packages-microsoft-prod.deb
  12. RUN apt update; apt install libmsquic -y; apt clean -y;
  13. COPY ./DnsServerApp/bin/Release/publish/ .
  14. EXPOSE 5380/tcp
  15. EXPOSE 53443/tcp
  16. EXPOSE 53/udp
  17. EXPOSE 53/tcp
  18. EXPOSE 853/udp
  19. EXPOSE 853/tcp
  20. EXPOSE 443/udp
  21. EXPOSE 443/tcp
  22. EXPOSE 80/tcp
  23. EXPOSE 8053/tcp
  24. EXPOSE 67/udp
  25. VOLUME ["/etc/dns"]
  26. STOPSIGNAL SIGINT
  27. ENTRYPOINT ["/usr/bin/dotnet", "/opt/technitium/dns/DnsServerApp.dll"]
  28. CMD ["/etc/dns"]