Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace pip with apk for aws-cli and update alpine #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down