diff options
| author | Joe Eaves <jinux@alluha.net> | 2020-12-17 13:12:06 (GMT) |
|---|---|---|
| committer | Joe Eaves <jinux@alluha.net> | 2020-12-21 01:42:41 (GMT) |
| commit | a7df0a02799442ab38e1b365d4363cca6d93f029 (patch) | |
| tree | 76fcab519c1a20991ad5e587957741f34011421c /docker/entrypoint.sh | |
| parent | 276c8aa308f923aeeadc068967b15ee7c59fa32b (diff) | |
Unify the Dockerfiles by fleshing out build.sh
Script is written to handle it's own dependencies so it can be used within Docker or on the host system
Diffstat (limited to 'docker/entrypoint.sh')
| -rwxr-xr-x | docker/entrypoint.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh new file mode 100755 index 0000000..5adb88f --- /dev/null +++ b/docker/entrypoint.sh @@ -0,0 +1,7 @@ +#!/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 "$@"
\ No newline at end of file |
