-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
34 lines (26 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
FROM python
LABEL maintainer="plaintext@andromedarabbit.net"
# Set the timezone to KST
RUN cat /usr/share/zoneinfo/Asia/Seoul > /etc/localtime
RUN useradd --user-group --system --create-home --no-log-init --uid 1000 --shell /bin/bash app
ENV SLACKCAT_VERSION 1.6
RUN set -ex; \
export DEBIAN_FRONTEND=noninteractive; \
runDeps='curl ca-certificates xvfb wkhtmltopdf'; \
buildDeps=''; \
pipDeps='awscli ansi2html'; \
apt-get update && apt-get install -y $runDeps $buildDeps --no-install-recommends; \
rm -rf /var/lib/apt/lists/*; \
apt-get purge -y --auto-remove $buildDeps; \
rm /var/log/dpkg.log /var/log/apt/*.log; \
pip install $pipDeps;
RUN curl --silent -Lo slackcat https://github.com/bcicen/slackcat/releases/download/v${SLACKCAT_VERSION}/slackcat-${SLACKCAT_VERSION}-$(uname -s)-amd64 \
&& chmod +x slackcat \
&& chown app:app slackcat \
&& mv slackcat /usr/local/bin/
RUN curl -sL https://github.com/toniblyx/prowler/archive/master.tar.gz | tar xz \
&& mv prowler-master /prowler \
&& chown -R app:app /prowler
USER app
WORKDIR /home/app
CMD ./prowler