daf0abab5e
This is the first public release of kas. Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com>
12 lines
223 B
Bash
Executable File
12 lines
223 B
Bash
Executable File
#!/bin/bash
|
|
|
|
USER_ID=${USERID:-30000}
|
|
|
|
# Create a non-root user that will perform the actual build
|
|
id build 2>/dev/null || \
|
|
useradd --uid $USER_ID --create-home --home-dir /build build
|
|
|
|
cd /build
|
|
exec gosu build "$@"
|
|
|