Skip to content

Commit dc7d13b

Browse files
committed
chore(Dockerfile): Simplify testssl user creation
Create `testssl` user (_and group_) with no password (`-D`) and default their shell to bash (`-s`): - A group will implicitly be created with the same value as the user. `addgroup testssl` and `-G testssl` are not needed. - Gecos data (`-g "testssl user"`) doesn't appear relevant to the project to be required? The default gecos value (`Linux User,,,`) should be fine.
1 parent e02e8be commit dc7d13b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ RUN apk update && \
44
apk upgrade && \
55
apk add bash procps drill git coreutils libidn curl socat openssl xxd && \
66
rm -rf /var/cache/apk/* && \
7-
addgroup testssl && \
8-
adduser -G testssl -g "testssl user" -s /bin/bash -D testssl && \
7+
adduser -D -s /bin/bash testssl && \
98
ln -s /home/testssl/testssl.sh /usr/local/bin/ && \
109
mkdir -m 755 -p /home/testssl/etc /home/testssl/bin
1110

0 commit comments

Comments
 (0)