Skip to content

Commit

Permalink
Optimizing image size
Browse files Browse the repository at this point in the history
* fix debian source.list syntax
* remove unused packages
  • Loading branch information
arnaudveron committed Dec 9, 2024
1 parent 0cb35fc commit e5084ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 58 deletions.
33 changes: 10 additions & 23 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,38 +1,29 @@
FROM debian:latest

RUN sed -i 's/main/main contrib non-free/' /etc/apt/sources.list.d/debian.sources \
&& apt-get update && apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
apache2-utils \
RUN sed -i 's/Components: main/Components: main contrib non-free non-free-firmware/' /etc/apt/sources.list.d/debian.sources \
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
arping \
atop \
bash \
blktrace \
bridge-utils \
ca-certificates \
curl \
dnsutils \
dstat \
duplicity \
ethtool \
file \
git \
host \
htop \
iftop \
iotop \
iperf \
iproute2 \
iputils-ping \
jid \
jq \
less \
lftp \
lsof \
ltrace \
mariadb-client \
manpages \
man-db \
mtr-tiny \
netcat-traditional \
netcat-openbsd \
Expand All @@ -42,28 +33,24 @@ RUN sed -i 's/main/main contrib non-free/' /etc/apt/sources.list.d/debian.source
nmap \
openssl \
openssh-client \
postgresql-client \
procps \
python3 \
python3-requests \
rclone \
restic \
rsync \
sg3-utils \
siege \
socat \
strace \
stress \
stress-ng \
telnet \
tcpdump \
tini \
traceroute \
unzip \
vim \
vim-tiny \
wget \
&& apt -y --purge remove \
git-man \
python3 \
sgml-base \
&& apt -y autoremove \
&& apt-get clean all && rm -rf /var/lib/apt/lists/*

COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/bin/bash"]
ENTRYPOINT ["/usr/bin/tini"]
35 changes: 0 additions & 35 deletions docker-entrypoint.sh

This file was deleted.

0 comments on commit e5084ec

Please sign in to comment.