PTU5KAS/docker-entrypoint

12 lines
223 B
Plaintext
Raw Normal View History

#!/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 "$@"