-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (32 loc) · 1.06 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
# Container image that runs your code
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
# Upgrade and install dependencies
RUN apt-get update \
&& apt-get upgrade -yqq \
&& apt-get install -yqq --no-install-recommends \
python3-pip \
bash \
curl \
jq \
file \
git \
&& mkdir -p /securityhub \
&& pip3 install --upgrade setuptools \
&& pip3 install --upgrade wheel \
&& pip3 install --upgrade PyYAML \
&& pip3 install --upgrade awscli \
&& pip3 install --upgrade pyyaml \
&& pip3 install --upgrade boto3 \
&& pip3 freeze
# Copies the securityhub enabler scripts
COPY securityhub-enabler/* securityhub/
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1 \
&& chmod +x /securityhub/*.py
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY launch.sh /entrypoint.sh
COPY config.template /config.template
COPY credentials.template /credentials.template
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]
CMD []