diff --git a/.github/workflows/dev-dotnet.yml b/.github/workflows/dev-dotnet.yml index 673d375..396b227 100644 --- a/.github/workflows/dev-dotnet.yml +++ b/.github/workflows/dev-dotnet.yml @@ -28,22 +28,24 @@ jobs: - '7-sdk' - '8' - '8-sdk' - + - '9' + - '9-sdk' + steps: - uses: actions/checkout@v4 - + - uses: docker/setup-qemu-action@v3 - + - uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug - + - uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - + - uses: docker/build-push-action@v6 with: context: ./dev/dotnet diff --git a/dev/dotnet/9-sdk/Dockerfile b/dev/dotnet/9-sdk/Dockerfile new file mode 100644 index 0000000..14b2126 --- /dev/null +++ b/dev/dotnet/9-sdk/Dockerfile @@ -0,0 +1,46 @@ +FROM debian:bookworm-slim + +LABEL author="Torsten Widmann" maintainer="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.licenses=AGPL +LABEL org.opencontainers.image.description Dockerimage for Pelican Hosting Panel and Pterodactyl +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt update \ + && apt -y upgrade + +RUN apt install -y \ + apt-transport-https \ + iproute2 \ + locales \ + sqlite3 \ + tini \ + wget + +## add dotnet repos +RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ + && dpkg -i packages-microsoft-prod.deb \ + && rm packages-microsoft-prod.deb \ + && apt update -y \ + && apt install -y dotnet-sdk-9.0 libgdiplus + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +# Sets the default stop signal as wings can (currently) only send a kill or generic stop +STOPSIGNAL SIGINT + +COPY --chown=container:container ../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] diff --git a/dev/dotnet/9/Dockerfile b/dev/dotnet/9/Dockerfile new file mode 100644 index 0000000..f950fcc --- /dev/null +++ b/dev/dotnet/9/Dockerfile @@ -0,0 +1,46 @@ +FROM debian:bookworm-slim + +LABEL author="Torsten Widmann" maintainer="info@goover.de" +LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images" +LABEL org.opencontainers.image.licenses=AGPL +LABEL org.opencontainers.image.description Dockerimage for Pelican Hosting Panel and Pterodactyl +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt update \ + && apt -y upgrade + +RUN apt install -y \ + apt-transport-https \ + iproute2 \ + locales \ + sqlite3 \ + tini \ + wget + +## add dotnet repos +RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ + && dpkg -i packages-microsoft-prod.deb \ + && rm packages-microsoft-prod.deb \ + && apt update -y \ + && apt install -y aspnetcore-runtime-9.0 libgdiplus + +# Set the locale +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 + +## Setup user and working directory +RUN useradd -m -d /home/container -s /bin/bash container +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +# Sets the default stop signal as wings can (currently) only send a kill or generic stop +STOPSIGNAL SIGINT + +COPY --chown=container:container ../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"]