2018-02-09 14:11:27 +01:00
|
|
|
FROM alpine:latest
|
2017-11-19 16:14:30 +01:00
|
|
|
|
2018-02-09 14:11:27 +01:00
|
|
|
RUN apk update && apk upgrade
|
|
|
|
RUN apk add bash procps drill git coreutils
|
2017-11-19 16:14:30 +01:00
|
|
|
|
2018-02-09 14:11:27 +01:00
|
|
|
RUN addgroup testssl
|
|
|
|
RUN adduser -G testssl -g "testssl user" -s /bin/bash -D testssl
|
2017-11-19 16:14:30 +01:00
|
|
|
|
2018-02-09 14:11:27 +01:00
|
|
|
RUN ln -s /home/testssl/testssl.sh /usr/local/bin/
|
2017-11-19 16:14:30 +01:00
|
|
|
|
2018-02-09 14:11:27 +01:00
|
|
|
USER testssl
|
|
|
|
WORKDIR /home/testssl/
|
2017-11-19 16:14:30 +01:00
|
|
|
|
2018-02-09 14:11:27 +01:00
|
|
|
RUN git clone --depth=1 https://github.com/drwetter/testssl.sh.git .
|
|
|
|
|
|
|
|
ENTRYPOINT ["testssl.sh"]
|
2017-11-19 16:14:30 +01:00
|
|
|
|
|
|
|
CMD ["--help"]
|