forked from shartge/testssl.sh-webfrontend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
18 lines (15 loc) · 666 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM alpine:latest
RUN mkdir -p /testssl/log && mkdir -p /testssl/result/html && mkdir -p testssl/result/json
ADD static /testssl/static
ADD templates /testssl/templates
ADD SSLTestPortal.py /testssl/SSLTestPortal.py
RUN apk update && apk upgrade && \
apk add --update --no-cache python3 py3-pip aha git bash coreutils procps && \
ln -sf python3 /usr/bin/python && \
pip3 install flask &&\
git clone --depth 1 --branch v3.0.8 https://github.com/drwetter/testssl.sh.git /testssl.sh && \
apk del py3-pip git
RUN ln -s /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.pem
WORKDIR /testssl
EXPOSE 5000
CMD python SSLTestPortal.py