Skip to content

Commit

Permalink
Add kubectl installation to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolfx committed Nov 29, 2023
1 parent 5845376 commit 82a9a2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM alpine:latest
RUN apk add --no-cache bash kubectl
RUN apk add --no-cache bash
# Install kubectl
RUN apk add --no-cache curl && \
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
apk del curl
COPY restart.sh /restart.sh
RUN chmod +x /restart.sh
CMD ["/restart.sh"]

0 comments on commit 82a9a2e

Please sign in to comment.