We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 310e65e commit 75657e5Copy full SHA for 75657e5
build/bin/entrypoint
@@ -0,0 +1,3 @@
1
+#!/bin/sh -e
2
+
3
+exec ${OPERATOR} $@
build/bin/user_setup
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -x
4
+# ensure $HOME exists and is accessible by group 0 (we don't know what the runtime UID will be)
5
+echo "${USER_NAME}:x:${USER_UID}:0:${USER_NAME} user:${HOME}:/sbin/nologin" >> /etc/passwd
6
+mkdir -p ${HOME}
7
+chown ${USER_UID}:0 ${HOME}
8
+chmod ug+rwx ${HOME}
9
10
+# no need for this script to remain in the image after running
11
+rm $0
0 commit comments