Another attempt at fixing the Embedded DB Docker image (#388)

This commit is contained in:
Michael Green
2024-07-08 21:22:26 +10:00
committed by GitHub
parent ae75fc1490
commit 590a7829b1
4 changed files with 54 additions and 34 deletions

12
build/entrypoint.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
# create the user
echo "Creating user gaseous with UID ${PUID} and GID ${PGID}"
groupadd -g ${PGID} gaseous
useradd -u ${PUID} -g ${PGID} -m gaseous -G sudo
usermod -p "*" gaseous
mkdir -p /home/gaseous/.gaseous-server /var/lib/mysql
chown -R ${PUID}:${PGID} /App /home/gaseous/.gaseous-server /var/lib/mysql /run/mysqld
# Start supervisord and services
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf