forked from nccgroup/ScoutSuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (37 loc) · 1.19 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
FROM python:3.8
LABEL maintainer="Jason Ross <[email protected]>"
ARG VCS_REF
ARG VCS_URL
ARG VERSION
ARG BUILD_DATE
ARG VENDOR
ARG NAME
ARG DESCRIPTION
# Build-time metadata as defined at http://label-schema.org
LABEL \
org.label-schema.schema-version="1.0" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name=$NAME \
org.label-schema.description=$DESCRIPTION \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=$VCS_URL \
org.label-schema.vendor=$VENDOR \
org.label-schema.version=$VERSION
# Copy helper scripts to container
COPY bin /root/bin
# Install any additional software
RUN ["/bin/bash", "-c", "/root/bin/container-install-additional.sh"]
# Set a nice message
RUN ["/bin/bash", "-c", "/root/bin/container-set-motd.sh"]
# Install AWS CLI
RUN ["/bin/bash", "-c", "/root/bin/container-install-aws2.sh"]
# Install Azure CLI
RUN ["/bin/bash", "-c", "/root/bin/container-install-azure.sh"]
# Install gCloud SDK
RUN ["/bin/bash", "-c", "/root/bin/container-install-gcp.sh"]
# Install ScoutSuite
RUN ["/bin/bash", "-c", "/root/bin/container-install-scoutsuite.sh"]
# Remove scripts
RUN ["rm", "-rf", "/root/bin"]
# Command
CMD ["/bin/bash"]