-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a475d61
commit bbc5bd9
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |