dev files

This commit is contained in:
2024-01-17 16:28:18 +00:00
parent f98a7cf946
commit 01c09edb17
4 changed files with 54 additions and 46 deletions

View File

@@ -1,43 +1,39 @@
FROM mcr.microsoft.com/dotnet/aspnet:7.0
LABEL maintainer="michaelpellegrini@protonmail.com"
LABEL product="Technitium DNS Server"
LABEL vendor="Technitium"
LABEL email="support@technitium.com"
LABEL project_url="https://technitium.com/dns/"
LABEL github_url="https://github.com/TechnitiumSoftware/DnsServer"
ENV TZ=America/New_York
WORKDIR /opt/technitium/dns/
WORKDIR /app
RUN apt-get update; apt-get install curl -y; \
curl https://download.technitium.com/dns/DnsServerPortable.tar.gz --output DnsServerPortable.tar.gz; \
RUN apt update; apt install curl -y; \
curl https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb --output packages-microsoft-prod.deb; \
gunzip /app/DnsServerPortable.tar.gz; tar -xf /app/DnsServerPortable.tar; \
dpkg -i packages-microsoft-prod.deb; apt-get update; apt install libmsquic=2.1.8 -y; apt-get clean -y; \
ln -sf /usr/share/zoneinfo/$TZ /etc/localtime; rm DnsServerPortable.tar packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb; \
rm packages-microsoft-prod.deb
RUN apt update; apt install dnsutils libmsquic -y; apt clean -y;
COPY ./DnsServerApp/bin/Release/publish/ .
EXPOSE 5380/tcp
EXPOSE 53443/tcp
EXPOSE 53/udp
EXPOSE 53/tcp
EXPOSE 67/udp
EXPOSE 80/tcp
EXPOSE 443/tcp
EXPOSE 443/udp
EXPOSE 853/tcp
EXPOSE 853/udp
EXPOSE 5380/tcp
EXPOSE 853/tcp
EXPOSE 443/udp
EXPOSE 443/tcp
EXPOSE 80/tcp
EXPOSE 8053/tcp
EXPOSE 53443/tcp
EXPOSE 67/udp
VOLUME [ "/app/config" ]
VOLUME [ "/etc/ssl" ]
VOLUME [ "/app/config/logs" ]
VOLUME ["/etc/dns"]
STOPSIGNAL SIGINT
# Build arguments
ARG BUILD_ARCH
ARG BUILD_DATE
ARG BUILD_DESCRIPTION
ARG BUILD_NAME
ARG BUILD_REF
ARG BUILD_REPOSITORY
ARG BUILD_VERSION
# Labels
LABEL \
@@ -58,4 +54,7 @@ LABEL \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION}
ENTRYPOINT [ "dotnet", "/app/DnsServerApp.dll" ]
ENTRYPOINT ["/usr/bin/dotnet", "/opt/technitium/dns/DnsServerApp.dll"]
CMD ["/etc/dns"]