# debian.sh --arch 'amd64' out/ 'bookworm' '@1742169600' |
LABEL author=Michael Parker maintainer=parker@pterodactyl.io |
LABEL org.opencontainers.image.source=https://github.com/pterodactyl/yolks |
LABEL org.opencontainers.image.licenses=MIT |
ENV DEBIAN_FRONTEND=noninteractive |
RUN /bin/sh -c useradd -m -d /home/container -s /bin/bash container # buildkit |
RUN /bin/sh -c ln -s /home/container/ /nonexistent # buildkit |
ENV USER=container HOME=/home/container |
RUN /bin/sh -c apt update && apt upgrade -y # buildkit |
RUN /bin/sh -c apt install -y gcc g++ libgcc-12-dev libc++-dev gdb libc6 git wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat-traditional telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 libfontconfig1 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev-compat libduktape207 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates liblua5.3-0 libz3-dev libzadc4 rapidjson-dev tzdata libevent-dev libzip4 libprotobuf32 libfluidsynth3 procps libstdc++6 tini # buildkit |
RUN /bin/sh -c if [ "$(uname -m)" = "x86_64" ]; then wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu66_66.1-2ubuntu2.1_amd64.deb && wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb && dpkg -i libicu66_66.1-2ubuntu2.1_amd64.deb && dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb && rm libicu66_66.1-2ubuntu2.1_amd64.deb libssl1.1_1.1.0g-2ubuntu4_amd64.deb; fi # buildkit |
RUN /bin/sh -c if [ ! "$(uname -m)" = "x86_64" ]; then wget http://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb && dpkg -i libssl1.1_1.1.1f-1ubuntu2_arm64.deb && rm libssl1.1_1.1.1f-1ubuntu2_arm64.deb; fi # buildkit |
RUN /bin/sh -c update-locale lang=en_US.UTF-8 && dpkg-reconfigure --frontend noninteractive locales # buildkit |
WORKDIR /home/container |
STOPSIGNAL SIGINT |
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh # buildkit |
RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit |
ENTRYPOINT ["/usr/bin/tini" "-g" "--"] |
CMD ["/entrypoint.sh"] |
LABEL author=Torsten Widmann maintainer=info@goover.de |
ENV DEBIAN_FRONTEND=noninteractive |
RUN /bin/sh -c 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/5.0 | grep -i '<h3 id="sdk-5.*">SDK 5.*.*</h3>' | 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 # buildkit |
USER container |
ENV USER=container HOME=/home/container |
WORKDIR /home/container |
STOPSIGNAL SIGINT |
COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh # buildkit |
RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit |
ENTRYPOINT ["/usr/bin/tini" "-g" "--"] |
CMD ["/entrypoint.sh"] |