2023-10-12 09:59:25 +02:00
|
|
|
FROM alpine:3.18
|
2017-03-30 13:18:46 +02:00
|
|
|
|
2020-05-09 12:48:11 +02:00
|
|
|
RUN apk update && \
|
|
|
|
apk upgrade && \
|
2023-03-19 22:41:17 +01:00
|
|
|
apk add --no-cache bash procps drill coreutils libidn curl openssl1.1-compat && \
|
2020-05-09 12:48:11 +02:00
|
|
|
addgroup testssl && \
|
|
|
|
adduser -G testssl -g "testssl user" -s /bin/bash -D testssl && \
|
|
|
|
ln -s /home/testssl/testssl.sh /usr/local/bin/ && \
|
2023-03-20 14:19:35 +01:00
|
|
|
mkdir -m 755 -p /home/testssl/etc /home/testssl/bin && \
|
|
|
|
ln -s /usr/bin/openssl1.1 /usr/bin/openssl
|
2017-03-30 13:18:46 +02:00
|
|
|
|
2018-02-08 21:06:19 +01:00
|
|
|
USER testssl
|
|
|
|
WORKDIR /home/testssl/
|
2017-03-30 13:18:46 +02:00
|
|
|
|
2020-05-09 12:48:11 +02:00
|
|
|
COPY --chown=testssl:testssl etc/. /home/testssl/etc/
|
|
|
|
COPY --chown=testssl:testssl bin/. /home/testssl/bin/
|
|
|
|
COPY --chown=testssl:testssl testssl.sh /home/testssl/
|
2018-02-08 21:06:19 +01:00
|
|
|
|
|
|
|
ENTRYPOINT ["testssl.sh"]
|
2017-03-30 14:41:46 +02:00
|
|
|
|
|
|
|
CMD ["--help"]
|