Initial commit.

This commit is contained in:
michael 2020-05-21 13:52:09 -05:00
commit f5f2d79d3b
5 changed files with 98 additions and 0 deletions

15
entrypoint Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
# Add local user
# Either use the PUID/PGID if passed in at runtime or
# fallback
USER_ID=${PUID:-9001}
GROUP_ID=${PGID:-$USER_ID}
echo "Starting with UID : $USER_ID:$GROUP_ID"
addgroup -g $GROUP_ID proton
adduser -D -u $USER_ID -G proton -h /var/lib/proton -s /bin/bash proton
chown -R ${USER_ID}:${GROUP_ID} /var/lib/proton
export HOME=/var/lib/proton
exec /sbin/su-exec proton "$@"