From 89d6a8311e0ac75bb78072c7cd8aab3957ffdcb0 Mon Sep 17 00:00:00 2001 From: Senaris Date: Fri, 17 Nov 2023 02:12:48 +0200 Subject: [PATCH] dotnet 8 --- .github/workflows/dotnet.yml | 1 + dotnet/8/Dockerfile | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 dotnet/8/Dockerfile diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f1a0064c1..2ef4786f1 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -21,6 +21,7 @@ jobs: - 5 - 6 - 7 + - 8 steps: - uses: actions/checkout@v3 # Setup QEMU for ARM64 Build diff --git a/dotnet/8/Dockerfile b/dotnet/8/Dockerfile new file mode 100644 index 000000000..b158d0310 --- /dev/null +++ b/dotnet/8/Dockerfile @@ -0,0 +1,25 @@ +FROM --platform=$TARGETOS/$TARGETARCH ghcr.io/parkervcp/yolks:debian + +LABEL author="Torsten Widmann" maintainer="info@goover.de" + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt update -y \ + && apt upgrade -y \ + && apt install -y apt-transport-https wget curl iproute2 libgdiplus tini \ + && wget https://dot.net/v1/dotnet-install.sh \ + && D_V="$(curl -sSL https://dotnet.microsoft.com/en-us/download/dotnet/8.0 | grep -i '

SDK 8.*.*

' | head -1 | awk -F\" '{print $3}' | awk '{print $2;}' | sed 's/<\/h3>//g')" \ + && chmod +x dotnet-install.sh \ + && ./dotnet-install.sh -i /usr/share -v $D_V \ + && ln -s /usr/share/dotnet /usr/bin/dotnet + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +STOPSIGNAL SIGINT + +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"]