From e9505eda4c59b493f1b66a6c4827a9c70623cb15 Mon Sep 17 00:00:00 2001 From: littlesheng19 Date: Wed, 21 Feb 2024 14:02:06 +0800 Subject: [PATCH] replace pip with apk for aws-cli and update alpine --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e375147..6919735 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,15 @@ -FROM alpine:3.8 +FROM alpine:3.19.1 -ARG TERRAFORM_VERSION="1.0.0" +ARG TERRAFORM_VERSION="1.7.3" ENV TERRAFORM_VERSION=$TERRAFORM_VERSION RUN \ mkdir -p /aws && mkdir -p ~/.ssh && \ echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \ - apk update && apk -Uuv add groff less python py-pip bash jq openssl tzdata make zip curl \ + apk update && apk -Uuv add groff less python3 py-pip bash jq openssl tzdata make zip curl aws-cli \ git wget unzip openssh-client && \ wget -q -O /terraform.zip "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && \ unzip /terraform.zip -d /bin && \ - pip install awscli && \ apk --purge -v del py-pip wget unzip && \ rm /var/cache/apk/* /terraform.zip