12 lines
223 B
Plaintext
12 lines
223 B
Plaintext
|
#!/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 "$@"
|
||
|
|