cutter/docker/entrypoint.sh
ps f1182bef74 Docker: Add UID/GID mapping, Refactoring (#557)
* docker/Dockerfile: Reduce layer count, restructure

* Docker: Add UID/GID mapping
2018-06-30 13:50:05 +02:00

10 lines
247 B
Bash
Executable File

#!/bin/bash
USERNAME="r2"
echo "Cutter: Starting with UID:GID $LOCAL_USER_ID:$LOCAL_GROUP_ID"
usermod -u $LOCAL_USER_ID $USERNAME
usermod -g $LOCAL_GROUP_ID $USERNAME
export HOME=/home/$USERNAME
exec gosu $USERNAME "/opt/cutter/build/Cutter" $@