-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (25 loc) · 843 Bytes
/
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
FROM golang:alpine
# aws-cli uses 'less -R'. However less with R option is not available in alpine linux
ENV PAGER=more
# groff is required by aws-cli
RUN apk add --no-cache -v --virtual .build-deps \
git \
py-pip \
&& apk --no-cache -v add \
bash \
groff \
jq \
python \
py-setuptools \
&& pip install \
awscli==1.16.18 \
&& git clone --depth=1 https://github.com/hashicorp/terraform.git ${GOPATH}/src/github.com/hashicorp/terraform > /dev/null 2>&1 \
&& (cd ${GOPATH}/src/github.com/hashicorp/terraform; go install ./tools/terraform-bundle) \
&& rm -rf ${GOPATH}/src/github.com/hashicorp/terraform \
&& apk del .build-deps \
&& rm -rf /root/.cache \
&& rm -rf /var/cache/apk/*
WORKDIR /app
COPY src/* /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/tfenv"]
CMD []