Skip to content

Commit

Permalink
Fix docker image lint
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Diniz <[email protected]>
  • Loading branch information
arthurbdiniz committed May 17, 2021
1 parent 74210f4 commit 50e2351
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,27 @@ WORKDIR /work

RUN apk --no-cache update && \
apk --no-cache add \
bash \
ca-certificates \
git \
openssl \
unzip \
wget \
curl \
make

RUN wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -P /tmp && \
unzip /tmp/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/bin

RUN apk --no-cache add \
python3-dev \
py3-pip \
py-setuptools \
groff \
less \
jq \
gettext-dev \
g++ \
zip && \
bash \
ca-certificates \
git \
openssl \
unzip \
zip \
wget \
curl \
python3-dev \
py3-pip \
py-setuptools \
groff \
less \
jq \
gettext-dev \
g++ \
make && \
pip --no-cache-dir install awscli==$AWSCLI_VERSION && \
update-ca-certificates && \
curl -sL https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -o /tmp/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
unzip /tmp/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/bin && \
rm -rf /var/tmp/ && \
rm -rf /tmp/* && \
rm -rf /var/cache/apk/*
Expand All @@ -44,6 +41,4 @@ ENV PATH "$PATH:/opt/scripts"

ENTRYPOINT [ "terraform" ]


CMD [ "--version" ]

0 comments on commit 50e2351

Please sign in to comment.