Merge pull request #2312 from polarathene/chore/dockerfile-simplify-user

chore(Dockerfile): Simplify `testssl` user creation
This commit is contained in:
Dirk Wetter 2023-02-07 09:03:23 +01:00 committed by GitHub
commit 1ee21b7f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,9 +4,9 @@ RUN apk update && \
apk upgrade && \
apk add bash procps drill git coreutils libidn curl socat openssl xxd && \
rm -rf /var/cache/apk/* && \
addgroup testssl && \
adduser -G testssl -g "testssl user" -s /bin/bash -D testssl && \
ln -s /home/testssl/testssl.sh /usr/local/bin/
adduser -D -s /bin/bash testssl && \
ln -s /home/testssl/testssl.sh /usr/local/bin/ && \
mkdir -m 755 -p /home/testssl/etc /home/testssl/bin
USER testssl
WORKDIR /home/testssl/