-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 1008 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 1008 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
FROM public.ecr.aws/jsii/superchain:1-buster-slim-node18
ARG KUBECTL_URL='https://s3.us-west-2.amazonaws.com/amazon-eks/1.28.3/2023-11-14/bin/linux/amd64/kubectl'
ARG AWS_CLI_V2_URL='https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip'
ARG TERRAFORM_URL='https://releases.hashicorp.com/terraform/1.6.6/terraform_1.6.6_darwin_amd64.zip'
USER root:root
# install jq wget
RUN apt-get update && apt-get install -y jq wget
# install aws-cli v2
RUN mv $(which aws) /usr/local/bin/awscliv1 && \
mkdir /tmp/awscliv2 && cd /tmp/awscliv2 && \
curl "${AWS_CLI_V2_URL}" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install -b /usr/local/bin --update && \
rm -rf /tmp/awscliv2 && \
aws --version
# install kubectl
RUN curl -o kubectl "${KUBECTL_URL}" && \
chmod +x kubectl && \
mv kubectl /usr/local/bin
# install terraform
RUN curl -o terraform.zip "${TERRAFORM_URL}" && \
unzip terraform.zip && \
mv terraform /usr/local/bin/ && \
rm -f terraform.zip
USER superchain:superchain