mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 13:55:25 +01:00 
			
		
		
		
	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.
This commit is contained in:
		| @@ -4,8 +4,7 @@ RUN apk update && \ | |||||||
|     apk upgrade && \ |     apk upgrade && \ | ||||||
|     apk add bash procps drill git coreutils libidn curl socat openssl xxd && \ |     apk add bash procps drill git coreutils libidn curl socat openssl xxd && \ | ||||||
|     rm -rf /var/cache/apk/* && \ |     rm -rf /var/cache/apk/* && \ | ||||||
|     addgroup testssl && \ |     adduser -D -s /bin/bash testssl && \ | ||||||
|     adduser -G testssl -g "testssl user" -s /bin/bash -D testssl && \ |  | ||||||
|     ln -s /home/testssl/testssl.sh /usr/local/bin/ && \ |     ln -s /home/testssl/testssl.sh /usr/local/bin/ && \ | ||||||
|     mkdir -m 755 -p /home/testssl/etc /home/testssl/bin |     mkdir -m 755 -p /home/testssl/etc /home/testssl/bin | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Brennan Kinney
					Brennan Kinney