-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (20 loc) · 1.19 KB
/
Dockerfile
File metadata and controls
23 lines (20 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM debian:bookworm-slim
# Add common tools
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bash-completion ca-certificates curl eject fdisk htop iproute2 ipset iptables iputils-ping kmod \
less locales nano net-tools openssh-server procps psmisc rsync sudo systemd-sysv vim wget \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /etc/ssh/*key*
# Add en_US.UTF-8 locale
RUN echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen \
&& locale-gen \
&& find /usr/share/i18n/charmaps -not -path /usr/share/i18n/charmaps/UTF-8.gz -name '*.gz' -exec rm -rf {} \; \
&& find /usr/share/i18n/locales -not -path /usr/share/i18n/locales/en_US -name '*_*' -exec rm -rf {} \;
# Add Docker CE command line
RUN install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc \
&& chmod a+r /etc/apt/keyrings/docker.asc \
&& echo deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian bookworm stable | tee /etc/apt/sources.list.d/docker.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends docker-ce-cli docker-buildx-plugin docker-compose-plugin