-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
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 GitHub Actions / dotnet:9-sdkLegacy key/value format with whitespace separator should not be used
|
||
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 GitHub Actions / dotnet:9-sdkLegacy key/value format with whitespace separator should not be used
|
||
ENV LANGUAGE en_US:en | ||
Check warning on line 31 in dev/dotnet/9-sdk/Dockerfile GitHub Actions / dotnet:9-sdkLegacy key/value format with whitespace separator should not be used
|
||
ENV LC_ALL en_US.UTF-8 | ||
Check warning on line 32 in dev/dotnet/9-sdk/Dockerfile GitHub Actions / dotnet:9-sdkLegacy key/value format with whitespace separator should not be used
|
||
|
||
## 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"] |
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 GitHub Actions / dotnet:9Legacy key/value format with whitespace separator should not be used
|
||
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 GitHub Actions / dotnet:9Legacy key/value format with whitespace separator should not be used
|
||
ENV LANGUAGE en_US:en | ||
Check warning on line 31 in dev/dotnet/9/Dockerfile GitHub Actions / dotnet:9Legacy key/value format with whitespace separator should not be used
|
||
ENV LC_ALL en_US.UTF-8 | ||
Check warning on line 32 in dev/dotnet/9/Dockerfile GitHub Actions / dotnet:9Legacy key/value format with whitespace separator should not be used
|
||
|
||
## 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"] |