a7df0a0279
Script is written to handle it's own dependencies so it can be used within Docker or on the host system
7 lines
291 B
Bash
Executable file
7 lines
291 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
## Create a user on-the-fly before running CMD
|
|
## This allows us to override at runtime, allowing use of a pre-built docker image
|
|
addgroup --gid $GROUP_ID user
|
|
adduser --disabled-password --gecos '' --uid $USER_ID --gid $GROUP_ID user
|
|
exec gosu user:user /bin/bash -c "$@" |