-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (45 loc) · 1007 Bytes
/
Dockerfile
File metadata and controls
51 lines (45 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM debian:stable-slim
ENV DEBIAN_FRONTEND=noninteractive
# Install essential tools and debugging utilities
RUN apt-get update && apt-get install -y --no-install-recommends \
iproute2 \
iputils-ping \
dnsutils \
net-tools \
curl \
netcat-traditional \
tcpdump \
mtr \
bind9-dnsutils \
host \
vim \
less \
strace \
lsof \
procps \
telnet \
jq \
bash \
bash-completion \
ca-certificates \
gnupg \
openssl \
nmap \
httpie \
postgresql-client \
mariadb-client \
redis-tools \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Optional: install kubectl
ARG KUBECTL_VERSION=1.29.0
RUN curl -LO https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl \
&& install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl \
&& rm kubectl
# Set bash as default shell
SHELL ["/bin/bash", "-c"]
# Set working directory
WORKDIR /root
# Default command
CMD ["bash"]