forked from douglasquintanilha/kubectl-docker-image
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
55 lines (42 loc) · 1.49 KB
/
Dockerfile
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
52
53
54
55
FROM python:3.11.8-alpine3.19 as builder
ENV AWS_CLI_VERSION=2.15.31
RUN set -ex; \
apk add --no-cache \
git unzip groff build-base libffi-dev cmake
RUN set -eux; \
git clone --single-branch --depth 1 -b ${AWS_CLI_VERSION} https://github.com/aws/aws-cli.git; \
cd /aws-cli; \
python -m venv venv; \
. venv/bin/activate; \
./scripts/installers/make-exe
RUN set -ex; \
unzip /aws-cli/dist/awscli-exe.zip; \
./aws/install --bin-dir /aws-cli-bin; \
/aws-cli-bin/aws --version
FROM alpine:3.19
LABEL maintainer="Wildlife Studios"
ARG BASH_VERSION="5.2.21-r0"
ARG CURL_VERSION="8.5.0-r0"
ARG DOCKER_CLI_VERSION="25.0.5-r0"
ARG GIT_VERSION="2.43.0-r0"
ARG MAKE_VERSION="4.4.1-r2"
ARG KUBECTL_VERSION="v1.29.2"
ARG HELM_VERSION="v3.14.3"
RUN apk --no-cache upgrade
RUN apk --no-cache add bash=${BASH_VERSION} \
curl=${CURL_VERSION} \
docker-cli=${DOCKER_CLI_VERSION} \
git=${GIT_VERSION} \
make=${MAKE_VERSION} \
python3
RUN curl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl --output /bin/kubectl \
&& chmod u+x /bin/kubectl
RUN curl https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz --output - | \
tar -xzf - -C /tmp/ \
&& mv /tmp/linux-amd64/helm /bin/ \
&& chmod +x /bin/helm \
&& rm -rf /tmp/linux-amd64
COPY --from=builder /usr/local/aws-cli/ /usr/local/aws-cli/
COPY --from=builder /aws-cli-bin/ /usr/local/bin/
ENTRYPOINT [ "/bin/bash", "-c" ]
CMD [ "bash" ]