add dotnet 7

This commit is contained in:
Quinten
2022-11-12 11:37:06 +01:00
committed by GitHub
parent c0daa84da8
commit 50948f3b29
4 changed files with 23 additions and 2 deletions

20
dotnet/7/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
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 iproute2 libgdiplus \
&& wget https://dot.net/v1/dotnet-install.sh \
&& chmod +x dotnet-install.sh \
&& ./dotnet-install.sh -i /usr/share -v 7.0.100 \
&& ln -s /usr/share/dotnet /usr/bin/dotnet
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]