We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7550a32 commit 02042fdCopy full SHA for 02042fd
docker/entrypoint.sh
@@ -0,0 +1,9 @@
1
+#!/bin/bash
2
+
3
+if ! whoami &> /dev/null; then
4
+ if [ -w /etc/passwd ]; then
5
+ echo "${USER_NAME:-default}:x:$(id -u):0:${USER_NAME:-default} user:${HOME}:/sbin/nologin" >> /etc/passwd
6
+ fi
7
+fi
8
9
+exec "$@"
0 commit comments