Skip to content

Commit

Permalink
attempt to make images smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
EgoMaw committed Mar 27, 2024
1 parent b19f068 commit 8931b54
Show file tree
Hide file tree
Showing 20 changed files with 34 additions and 16 deletions.
1 change: 1 addition & 0 deletions bunjs/canary/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ LABEL author="EgoMaw" maintainer="[email protected]"

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
Expand Down
1 change: 1 addition & 0 deletions bunjs/stable/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ LABEL author="EgoMaw" maintainer="[email protected]"

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
Expand Down
1 change: 1 addition & 0 deletions dotnet/3.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions dotnet/5/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions dotnet/6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions dotnet/7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions dotnet/8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions dotnet/9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions installers/debian-java-17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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') \
Expand Down
7 changes: 4 additions & 3 deletions installers/debian-java/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
&& chmod +x /usr/bin/yq
5 changes: 2 additions & 3 deletions installers/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
&& tar xvf restify.tar.gz -C /usr/local/bin/ && rm restify.tar.gz && chmod +x /usr/local/bin/restify
7 changes: 4 additions & 3 deletions oses/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions steamcmd/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions steamcmd/dotnet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions steamcmd/sniper/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion wine/6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ LABEL author="EgoMaw" maintainer="[email protected]"
## 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 \
Expand Down
3 changes: 2 additions & 1 deletion wine/7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ LABEL author="EgoMaw" maintainer="[email protected]"
## 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 \
Expand Down
3 changes: 2 additions & 1 deletion wine/8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ LABEL author="EgoMaw" maintainer="[email protected]"
## 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 \
Expand Down
3 changes: 2 additions & 1 deletion wine/stable/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ LABEL author="EgoMaw" maintainer="[email protected]"
## 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 \
Expand Down
3 changes: 2 additions & 1 deletion wine/staging/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ LABEL author="EgoMaw" maintainer="[email protected]"
## 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 \
Expand Down

0 comments on commit 8931b54

Please sign in to comment.