-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
37 lines (30 loc) · 767 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
31
32
33
34
35
36
37
FROM python:3.11.0-alpine3.15
# FROM ubuntu
LABEL maintainer="Hans Mayer <[email protected]>"
RUN apk update && apk upgrade && apk add --no-cache --update \
ansible \
bash \
curl \
docker \
g++ \
go \
libxml2 \
libxml2-dev \
libxslt-dev \
openssh-client \
rsync \
shellcheck \
sudo \
tar \
unzip \
&& rm -rf /var/cache/apk/*
COPY *.sh ./
RUN ./packer_version.sh && \
./terraform_version.sh && \
./awscli_version.sh
RUN pip3 install terraform-compliance && \
curl https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash && \
go install github.com/aquasecurity/tfsec/cmd/tfsec@latest
RUN rm -rf /tmp/*
WORKDIR /usr/local/bin
CMD ["/bin/bash"]