Skip to content

Commit

Permalink
add dotnet 9
Browse files Browse the repository at this point in the history
  • Loading branch information
gOOvER committed Nov 16, 2024
1 parent 08e67d9 commit bf2cb1f
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/dev-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
46 changes: 46 additions & 0 deletions dev/dotnet/9-sdk/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM debian:bookworm-slim

LABEL author="Torsten Widmann" maintainer="[email protected]"
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

Check warning on line 6 in dev/dotnet/9-sdk/Dockerfile

View workflow job for this annotation

GitHub Actions / dotnet:9-sdk

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
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

Check warning on line 30 in dev/dotnet/9-sdk/Dockerfile

View workflow job for this annotation

GitHub Actions / dotnet:9-sdk

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV LANGUAGE en_US:en

Check warning on line 31 in dev/dotnet/9-sdk/Dockerfile

View workflow job for this annotation

GitHub Actions / dotnet:9-sdk

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV LC_ALL en_US.UTF-8

Check warning on line 32 in dev/dotnet/9-sdk/Dockerfile

View workflow job for this annotation

GitHub Actions / dotnet:9-sdk

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

## 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"]
46 changes: 46 additions & 0 deletions dev/dotnet/9/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM debian:bookworm-slim

LABEL author="Torsten Widmann" maintainer="[email protected]"
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

Check warning on line 6 in dev/dotnet/9/Dockerfile

View workflow job for this annotation

GitHub Actions / dotnet:9

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "LABEL key=value" should be used instead of legacy "LABEL key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
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

Check warning on line 30 in dev/dotnet/9/Dockerfile

View workflow job for this annotation

GitHub Actions / dotnet:9

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV LANGUAGE en_US:en

Check warning on line 31 in dev/dotnet/9/Dockerfile

View workflow job for this annotation

GitHub Actions / dotnet:9

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV LC_ALL en_US.UTF-8

Check warning on line 32 in dev/dotnet/9/Dockerfile

View workflow job for this annotation

GitHub Actions / dotnet:9

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

## 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"]

0 comments on commit bf2cb1f

Please sign in to comment.