diff --git a/bunjs/canary/Dockerfile b/bunjs/canary/Dockerfile index 6367697b5..ba2cd5b34 100644 --- a/bunjs/canary/Dockerfile +++ b/bunjs/canary/Dockerfile @@ -3,6 +3,7 @@ LABEL author="EgoMaw" maintainer="egomaw@dedicatedmc.io" RUN apt-get update \ && apt-get -y --no-install-recommends install gettext-base ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool tini \ + && apt-get clean && rm -rf /var/lib/apt/lists/* \ && useradd -m -d /home/container container USER container diff --git a/bunjs/stable/Dockerfile b/bunjs/stable/Dockerfile index 04e55922e..590b69be2 100644 --- a/bunjs/stable/Dockerfile +++ b/bunjs/stable/Dockerfile @@ -3,6 +3,7 @@ LABEL author="EgoMaw" maintainer="egomaw@dedicatedmc.io" RUN apt-get update \ && apt-get -y --no-install-recommends install gettext-base ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool tini \ + && apt-get clean && rm -rf /var/lib/apt/lists/* \ && useradd -m -d /home/container container USER container diff --git a/dotnet/3.1/Dockerfile b/dotnet/3.1/Dockerfile index d731644c5..ee260698c 100644 --- a/dotnet/3.1/Dockerfile +++ b/dotnet/3.1/Dockerfile @@ -7,6 +7,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN apt update -y \ && apt upgrade -y \ && apt install -y --no-install-recommends apt-transport-https wget curl iproute2 libgdiplus gettext-base \ + && apt-get clean && rm -rf /var/lib/apt/lists/* \ && curl -sSL https://dot.net/v1/dotnet-install.sh | bash -s -- -c 3.1 --runtime aspnetcore --install-dir /usr/share \ && ln -s /usr/share/dotnet /usr/bin/dotnet diff --git a/dotnet/5/Dockerfile b/dotnet/5/Dockerfile index 3eb8e4d9f..291bf9c53 100644 --- a/dotnet/5/Dockerfile +++ b/dotnet/5/Dockerfile @@ -7,6 +7,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN apt update -y \ && apt upgrade -y \ && apt install -y --no-install-recommends apt-transport-https wget curl iproute2 libgdiplus gettext-base \ + && apt-get clean && rm -rf /var/lib/apt/lists/* \ && curl -sSL https://dot.net/v1/dotnet-install.sh | bash -s -- -c 5.0 --runtime aspnetcore --install-dir /usr/share \ && ln -s /usr/share/dotnet /usr/bin/dotnet diff --git a/dotnet/6/Dockerfile b/dotnet/6/Dockerfile index 37ef2d6af..a5a53caf1 100644 --- a/dotnet/6/Dockerfile +++ b/dotnet/6/Dockerfile @@ -7,6 +7,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN apt update -y \ && apt upgrade -y \ && apt install -y --no-install-recommends apt-transport-https wget curl iproute2 libgdiplus gettext-base \ + && apt-get clean && rm -rf /var/lib/apt/lists/* \ && curl -sSL https://dot.net/v1/dotnet-install.sh | bash -s -- -c 6.0 --runtime aspnetcore --install-dir /usr/share \ && ln -s /usr/share/dotnet /usr/bin/dotnet diff --git a/dotnet/7/Dockerfile b/dotnet/7/Dockerfile index 54fba849f..74d810ed8 100644 --- a/dotnet/7/Dockerfile +++ b/dotnet/7/Dockerfile @@ -7,6 +7,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN apt-get update -y \ && apt-get upgrade -y \ && apt-get install -y --no-install-recommends apt-transport-https curl iproute2 libgdiplus gettext-base \ + && apt-get clean && rm -rf /var/lib/apt/lists/* \ && curl -sSL https://dot.net/v1/dotnet-install.sh | bash -s -- -c 7.0 --runtime aspnetcore --install-dir /usr/share \ && ln -s /usr/share/dotnet /usr/bin/dotnet diff --git a/dotnet/8/Dockerfile b/dotnet/8/Dockerfile index e0f47168e..3f717443f 100644 --- a/dotnet/8/Dockerfile +++ b/dotnet/8/Dockerfile @@ -7,6 +7,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN apt-get update -y \ && apt-get upgrade -y \ && apt-get install -y --no-install-recommends apt-transport-https curl iproute2 libgdiplus gettext-base \ + && apt-get clean && rm -rf /var/lib/apt/lists/* \ && curl -sSL https://dot.net/v1/dotnet-install.sh | bash -s -- -c 8.0 --runtime aspnetcore --install-dir /usr/share \ && ln -s /usr/share/dotnet /usr/bin/dotnet diff --git a/dotnet/9/Dockerfile b/dotnet/9/Dockerfile index 8f4f798bc..aaa2b3011 100644 --- a/dotnet/9/Dockerfile +++ b/dotnet/9/Dockerfile @@ -7,6 +7,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN apt-get update -y \ && apt-get upgrade -y \ && apt-get install -y --no-install-recommends apt-transport-https curl iproute2 libgdiplus gettext-base \ + && apt-get clean && rm -rf /var/lib/apt/lists/* \ && curl -sSL https://dot.net/v1/dotnet-install.sh | bash -s -- -c 9.0 --runtime aspnetcore --install-dir /usr/share \ && ln -s /usr/share/dotnet /usr/bin/dotnet diff --git a/installers/debian-java-17/Dockerfile b/installers/debian-java-17/Dockerfile index 3dc88272a..c82cbab53 100644 --- a/installers/debian-java-17/Dockerfile +++ b/installers/debian-java-17/Dockerfile @@ -30,8 +30,9 @@ LABEL org.opencontainers.image.licenses=MIT ENV DEBIAN_FRONTEND=noninteractive ENV PATH="/root/.local/bin:${PATH}" -RUN apt-get update && apt-get upgrade --no-install-recommends -y -RUN apt-get -y --no-install-recommends install ca-certificates curl git unzip zip tar jq python3 dos2unix wget && apt-get --purge autoremove +RUN apt-get update && apt-get upgrade --no-install-recommends -y \ + && apt-get -y --no-install-recommends install ca-certificates curl git unzip zip tar jq python3 dos2unix wget \ + && apt-get clean && rm -rf /var/lib/apt/lists/* RUN version=$(curl -s https://api.github.com/repos/mikefarah/yq/releases/latest | jq -r '.tag_name') \ diff --git a/installers/debian-java/Dockerfile b/installers/debian-java/Dockerfile index 0a8fb2223..7d0294f1b 100644 --- a/installers/debian-java/Dockerfile +++ b/installers/debian-java/Dockerfile @@ -30,10 +30,11 @@ LABEL org.opencontainers.image.licenses=MIT ENV DEBIAN_FRONTEND=noninteractive ENV PATH="/root/.local/bin:${PATH}" -RUN apt-get update && apt-get upgrade --no-install-recommends -y -RUN apt-get -y --no-install-recommends install ca-certificates curl git unzip zip tar jq python3 dos2unix wget && apt-get --purge autoremove +RUN apt-get update && apt-get upgrade --no-install-recommends -y \ + && apt-get -y --no-install-recommends install ca-certificates curl git unzip zip tar jq python3 dos2unix wget \ + && apt-get clean && rm -rf /var/lib/apt/lists/* RUN version=$(curl -s https://api.github.com/repos/mikefarah/yq/releases/latest | jq -r '.tag_name') \ && curl "https://github.com/mikefarah/yq/releases/download/${version}/yq_linux_amd64" -sSLo /usr/bin/yq \ - && chmod +x /usr/bin/yq \ No newline at end of file + && chmod +x /usr/bin/yq diff --git a/installers/debian/Dockerfile b/installers/debian/Dockerfile index 2d0608411..2bba04371 100644 --- a/installers/debian/Dockerfile +++ b/installers/debian/Dockerfile @@ -33,10 +33,9 @@ RUN dpkg --add-architecture i386 \ && apt-get update \ && apt-get upgrade -y --no-install-recommends \ && apt-get -y --no-install-recommends install ca-certificates curl wget lib32gcc-s1 lib32stdc++6 libsdl2-2.0-0 libsdl2-2.0-0:i386 git unzip zip tar jq dos2unix xz-utils libtbbmalloc2 libtbbmalloc2:i386 lib32z1 \ - && apt-get --purge autoremove - + && apt-get clean && rm -rf /var/lib/apt/lists/* RUN cd /tmp/ \ && version=$(curl -s https://api.github.com/repos/itzg/restify/releases/latest | jq -r '.tag_name') \ && curl -sSL https://github.com/itzg/restify/releases/download/${version}/restify_${version}_linux_amd64.tar.gz -o restify.tar.gz \ - && tar xvf restify.tar.gz -C /usr/local/bin/ && rm restify.tar.gz && chmod +x /usr/local/bin/restify \ No newline at end of file + && tar xvf restify.tar.gz -C /usr/local/bin/ && rm restify.tar.gz && chmod +x /usr/local/bin/restify diff --git a/oses/debian/Dockerfile b/oses/debian/Dockerfile index 966f6515c..fb1a0cc1f 100644 --- a/oses/debian/Dockerfile +++ b/oses/debian/Dockerfile @@ -18,9 +18,10 @@ RUN apt-get update \ && apt-get upgrade -y ## Install dependencies -RUN apt-get install -y gcc g++ libgcc1 libc++-dev gdb libc-dev git wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \ - libfontconfig libicu67 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadbclient-dev-compat libduktape205 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates \ - liblua5.3-0 libz-dev rapidjson-dev tzdata libevent-dev libzip4 libprotobuf23 libevent-dev libfluidsynth2 gettext-base procps tini +RUN apt-get install -y gcc g++ libgcc1 libc++-dev gdb libc-dev git wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \ + libfontconfig libicu67 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadbclient-dev-compat libduktape205 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates \ + liblua5.3-0 libz-dev rapidjson-dev tzdata libevent-dev libzip4 libprotobuf23 libevent-dev libfluidsynth2 gettext-base procps tini \ + && apt-get clean && rm -rf /var/lib/apt/lists/* ## Configure locale RUN update-locale lang=en_US.UTF-8 && dpkg-reconfigure --frontend noninteractive locales diff --git a/steamcmd/debian/Dockerfile b/steamcmd/debian/Dockerfile index 4c5bb5d9c..1f7b24c26 100644 --- a/steamcmd/debian/Dockerfile +++ b/steamcmd/debian/Dockerfile @@ -11,6 +11,7 @@ RUN dpkg --add-architecture i386 \ && apt-get update \ && apt-get upgrade -y \ && apt-get install -y tar curl gcc g++ lib32gcc-s1 libgcc1 libcurl4-gnutls-dev:i386 libssl1.1:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 libsdl2-2.0-0 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat tzdata numactl xvfb jq gettext-base tini \ + && apt-get clean && rm -rf /var/lib/apt/lists/* \ && useradd -m -d /home/container container ## install rcon diff --git a/steamcmd/dotnet/Dockerfile b/steamcmd/dotnet/Dockerfile index de1edd95e..574e126db 100644 --- a/steamcmd/dotnet/Dockerfile +++ b/steamcmd/dotnet/Dockerfile @@ -10,6 +10,7 @@ RUN dpkg --add-architecture i386 \ && apt install -y tar curl gcc g++ lib32gcc-s1 libgcc1 libcurl4-gnutls-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat-openbsd tzdata jq \ && apt install -y libstdc++6 libstdc++6:i386 libc6-amd64 libc6:i386 psmisc libgdiplus libcurl4 libfontconfig1 libpangocairo-1.0-0 libnss3 libgconf-2-4 libxi6 libxcursor1 libxss1 libxcomposite1 libasound2 libxdamage1 libxtst6 libatk1.0-0 libxrandr2 libcurl4 xvfb mesa-utils git \ && apt install -y python3 python3-dev python3-pip apt-transport-https wget iproute2 sqlite3 xvfb tini \ + && apt-get clean && rm -rf /var/lib/apt/lists/* \ && useradd -d /home/container -m container RUN apt update -y \ diff --git a/steamcmd/sniper/Dockerfile b/steamcmd/sniper/Dockerfile index ac38a76f2..6620cf0eb 100644 --- a/steamcmd/sniper/Dockerfile +++ b/steamcmd/sniper/Dockerfile @@ -11,6 +11,7 @@ RUN dpkg --add-architecture i386 \ && apt-get update \ && apt-get upgrade -y \ && apt-get install -y tar curl gcc g++ lib32gcc-s1 libgcc1 libcurl4-gnutls-dev:i386 libssl1.1:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 libsdl2-2.0-0 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat tzdata numactl xvfb tini libc6 gettext-base \ + && apt-get clean && rm -rf /var/lib/apt/lists/* \ && useradd -m -d /home/container container ## install rcon diff --git a/wine/6/Dockerfile b/wine/6/Dockerfile index 40c0a28da..94aeb852e 100644 --- a/wine/6/Dockerfile +++ b/wine/6/Dockerfile @@ -8,7 +8,8 @@ LABEL author="EgoMaw" maintainer="egomaw@dedicatedmc.io" ## install required packages RUN dpkg --add-architecture i386 \ && apt-get update -y \ - && apt-get install -y --no-install-recommends gnupg2 software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 gettext-base gettext-base + && apt-get install -y --no-install-recommends gnupg2 software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 gettext-base gettext-base \ + && apt-get clean && rm -rf /var/lib/apt/lists/* # Install winehq-stable and with recommends RUN mkdir -pm755 /etc/apt/keyrings \ diff --git a/wine/7/Dockerfile b/wine/7/Dockerfile index 882724ade..e9bc1b419 100644 --- a/wine/7/Dockerfile +++ b/wine/7/Dockerfile @@ -8,7 +8,8 @@ LABEL author="EgoMaw" maintainer="egomaw@dedicatedmc.io" ## install required packages RUN dpkg --add-architecture i386 \ && apt-get update -y \ - && apt-get install -y --no-install-recommends gnupg2 software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 gettext-base gettext-base + && apt-get install -y --no-install-recommends gnupg2 software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 gettext-base gettext-base \ + && apt-get clean && rm -rf /var/lib/apt/lists/* # Install winehq-stable and with recommends RUN mkdir -pm755 /etc/apt/keyrings \ diff --git a/wine/8/Dockerfile b/wine/8/Dockerfile index 607ed6490..b557257c4 100644 --- a/wine/8/Dockerfile +++ b/wine/8/Dockerfile @@ -8,7 +8,8 @@ LABEL author="EgoMaw" maintainer="egomaw@dedicatedmc.io" ## install required packages RUN dpkg --add-architecture i386 \ && apt-get update -y \ - && apt-get install -y --no-install-recommends gnupg2 software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 gettext-base gettext-base + && apt-get install -y --no-install-recommends gnupg2 software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 gettext-base gettext-base \ + && apt-get clean && rm -rf /var/lib/apt/lists/* # Install winehq-stable and with recommends RUN mkdir -pm755 /etc/apt/keyrings \ diff --git a/wine/stable/Dockerfile b/wine/stable/Dockerfile index 67a9ac92d..5390a97e5 100644 --- a/wine/stable/Dockerfile +++ b/wine/stable/Dockerfile @@ -8,7 +8,8 @@ LABEL author="EgoMaw" maintainer="egomaw@dedicatedmc.io" ## install required packages RUN dpkg --add-architecture i386 \ && apt-get update -y \ - && apt-get install -y --no-install-recommends gnupg2 numactl tzdata software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386 gettext-base + && apt-get install -y --no-install-recommends gnupg2 numactl tzdata software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386 gettext-base \ + && apt-get clean && rm -rf /var/lib/apt/lists/* # Install winehq-stable and with recommends RUN mkdir -pm755 /etc/apt/keyrings \ diff --git a/wine/staging/Dockerfile b/wine/staging/Dockerfile index a46d33bcb..d519d4c86 100644 --- a/wine/staging/Dockerfile +++ b/wine/staging/Dockerfile @@ -8,7 +8,8 @@ LABEL author="EgoMaw" maintainer="egomaw@dedicatedmc.io" ## install required packages RUN dpkg --add-architecture i386 \ && apt-get update -y \ - && apt-get install -y --no-install-recommends gnupg2 tzdata numactl software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386 gettext-base + && apt-get install -y --no-install-recommends gnupg2 tzdata numactl software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386 gettext-base \ + && apt-get clean && rm -rf /var/lib/apt/lists/* # Install winehq-stable and with recommends RUN mkdir -pm755 /etc/apt/keyrings \