Skip to content

Commit

Permalink
add deb-tools image
Browse files Browse the repository at this point in the history
  • Loading branch information
SawyerCzupka committed Nov 4, 2024
1 parent a475d61 commit bbc5bd9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions deployment/images/Dockerfile.deb-tools
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM debian:bookworm-slim

# Prevent interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive

# Update package list and install required packages
RUN apt-get update && apt-get install -y \
nano \
make \
curl \
jq \
apt-transport-https \
ca-certificates \
gnupg \
&& rm -rf /var/lib/apt/lists/*

# Add Kubernetes repository and install kubectl
RUN curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/kubernetes-archive-keyring.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | tee /etc/apt/sources.list.d/kubernetes.list \
&& apt-get update \
&& apt-get install -y kubectl \
&& rm -rf /var/lib/apt/lists/*

# Set default command to bash
CMD ["/bin/bash"]

0 comments on commit bbc5bd9

Please sign in to comment.