mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-02 22:23:39 +00:00
commitb3f1e19813Merge:72650fe7e2ffbbAuthor: Quinten <[email protected]> Date: Thu Nov 30 23:53:50 2023 +0100 Merge pull request #209 from MarcoCoreDuo/java-21-tini Add tini to java 21 Dockerfile commit7e2ffbbfd8Author: MarcoCoreDuo <[email protected]> Date: Thu Nov 30 22:37:59 2023 +0100 Add tini to java 21 Dockerfile commit72650fe46fMerge:fa14c765023aa8Author: Michael (Parker) Parker <[email protected]> Date: Sun Nov 19 12:37:05 2023 -0500 Merge pull request #204 from parkervcp/tini-2 Add tini to some more images + fix Postgress stop commitfa14c76d0eMerge:f751694dc52a6bAuthor: Michael (Parker) Parker <[email protected]> Date: Sun Nov 19 12:36:17 2023 -0500 Merge pull request #203 from parkervcp/fixes Fixes images build + update workflow actions commitf751694239Merge:fa5c4c1f841911Author: Michael (Parker) Parker <[email protected]> Date: Sat Nov 18 20:37:29 2023 -0500 Merge pull request #206 from Senaris/master Add dotnet_8 commitf84191102aAuthor: Tita Junior Radu <[email protected]> Date: Sun Nov 19 03:08:44 2023 +0200 Add dotnet_8 commitdc52a6b037Author: Quinten <[email protected]> Date: Sat Nov 18 18:52:06 2023 +0100 Update all workflow actions commitfa5c4c1be5Merge:3dc42eb89d6a83Author: Quinten <[email protected]> Date: Sat Nov 18 18:45:16 2023 +0100 Merge pull request #205 from Senaris/master Add dotnet 8 commit5023aa8715Author: Quinten <[email protected]> Date: Sat Nov 18 18:42:27 2023 +0100 install tini commita02fea5fd6Author: Quinten <[email protected]> Date: Sat Nov 18 14:18:35 2023 +0100 add tini to dayz commit71f1752fdaAuthor: Quinten <[email protected]> Date: Sat Nov 18 14:16:12 2023 +0100 Add tini and more packages to postgres commit89d6a8311eAuthor: Senaris <[email protected]> Date: Fri Nov 17 02:12:48 2023 +0200 dotnet 8 commit535e9f9c3eAuthor: Quinten <[email protected]> Date: Sat Nov 11 10:38:14 2023 +0100 add tini: Valheim commitddce84116aAuthor: Quinten <[email protected]> Date: Sat Nov 11 10:34:10 2023 +0100 add tini: elixir commit816a447e3aAuthor: Quinten <[email protected]> Date: Sat Nov 11 10:32:24 2023 +0100 add forgoten STOPSIGNAL to uptimekuma commit3ef00bd216Author: Quinten <[email protected]> Date: Sat Nov 11 10:31:42 2023 +0100 add tini to bun commit83436eb3b6Author: Quinten <[email protected]> Date: Sat Nov 11 10:29:52 2023 +0100 add tini: Uptimekuma commite638f58017Author: Quinten <[email protected]> Date: Wed Nov 1 20:17:41 2023 +0100 Rust: stop building 1.31 commitf226560025Author: Quinten <[email protected]> Date: Wed Nov 1 20:15:57 2023 +0100 redbot: do not install discord-text-sanitizer commitc523dc5258Author: Quinten <[email protected]> Date: Wed Nov 1 20:15:32 2023 +0100 Update bastion
63 lines
2.9 KiB
Docker
63 lines
2.9 KiB
Docker
FROM --platform=$TARGETOS/$TARGETARCH ubuntu:22.04
|
|
|
|
LABEL author="Daniel Barton" maintainer="[email protected]"
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
## add container user
|
|
RUN useradd -m -d /home/container -s /bin/bash container
|
|
|
|
## Update base packages
|
|
RUN apt update \
|
|
&& apt upgrade -y
|
|
|
|
## Install dependencies
|
|
RUN apt install -y libc++-dev liblzo2-2 cabextract net-tools libatomic1 libsdl1.2debian libsdl2-2.0-0 \
|
|
libfontconfig libicu70 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadbclient-dev-compat libduktape207 ffmpeg apt-transport-https software-properties-common ca-certificates \
|
|
libz-dev rapidjson-dev tzdata libevent-dev libzip4 libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 libgdiplus tini
|
|
|
|
RUN dpkg --add-architecture armhf \
|
|
&& apt update -y \
|
|
&& apt upgrade -y \
|
|
&& apt install -y build-essential cmake gcc-arm-linux-gnueabihf git libc6:armhf libncurses5:armhf libstdc++6:armhf libpulse0 locales git wget curl tar zip unzip binutils xz-utils gnupg2 iproute2 gettext libnss-wrapper
|
|
# RUN dpkg --add-architecture i386 \
|
|
# && apt update \
|
|
# && apt upgrade -y \
|
|
# && apt install -y libcurl4-gnutls-dev:i386 libssl3:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 \
|
|
# gcc g++ libgcc1 libc++-dev gdb libc6 curl tar iproute2 net-tools libatomic1 libsdl1.2debian libsdl2-2.0-0 \
|
|
# libfontconfig locales libcurl3-gnutls libpulse-dev libpulse0 libnss-wrapper gettext tini
|
|
|
|
## configure locale
|
|
RUN update-locale lang=en_US.UTF-8 \
|
|
&& dpkg-reconfigure --frontend noninteractive locales
|
|
|
|
## Install box64
|
|
RUN wget https://ryanfortner.github.io/box64-debs/box64.list -O /etc/apt/sources.list.d/box64.list \
|
|
&& wget -qO- https://ryanfortner.github.io/box64-debs/KEY.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/box64-debs-archive-keyring.gpg \
|
|
&& apt update && apt install box64-rpi4arm64 -y
|
|
|
|
## Install box86
|
|
RUN wget https://ryanfortner.github.io/box86-debs/box86.list -O /etc/apt/sources.list.d/box86.list \
|
|
&& wget -qO- https://ryanfortner.github.io/box86-debs/KEY.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/box86-debs-archive-keyring.gpg \
|
|
&& apt update && apt install box86-rpi4arm64 -y
|
|
|
|
ENV USER=container HOME=/home/container
|
|
WORKDIR /home/container
|
|
|
|
|
|
|
|
## Prepare NSS Wrapper for the entrypoint as a workaround for Valheim requiring a valid UID
|
|
ENV NSS_WRAPPER_PASSWD=/tmp/passwd NSS_WRAPPER_GROUP=/tmp/group
|
|
RUN touch ${NSS_WRAPPER_PASSWD} ${NSS_WRAPPER_GROUP} \
|
|
&& chgrp 0 ${NSS_WRAPPER_PASSWD} ${NSS_WRAPPER_GROUP} \
|
|
&& chmod g+rw ${NSS_WRAPPER_PASSWD} ${NSS_WRAPPER_GROUP}
|
|
ADD passwd.template /passwd.template
|
|
|
|
|
|
STOPSIGNAL SIGINT
|
|
|
|
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
|
CMD ["/entrypoint.sh"]
|