mirror of
https://github.com/wireadmin/wireadmin
synced 2025-06-26 18:28:06 +00:00
feat(create-turbo): apply official-starter transform
This commit is contained in:
21
docker-entrypoint.sh
Normal file
21
docker-entrypoint.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/dumb-init /bin/sh
|
||||
set -e
|
||||
|
||||
# Note above that we run dumb-init as PID 1 in order to reap zombie processes
|
||||
# as well as forward signals to all processes in its session. Normally, sh
|
||||
# wouldn't do either of these functions so we'd leak zombies as well as do
|
||||
# unclean termination of all our sub-processes.
|
||||
|
||||
# Prevent core dumps
|
||||
ulimit -c 0
|
||||
|
||||
# Checking if there is /data folder
|
||||
if [ ! -d "/data" ]; then
|
||||
mkdir -p /data
|
||||
chmod 744 /data
|
||||
fi
|
||||
|
||||
# Starting Redis server in detached mode
|
||||
screen -dmS redis bash -c "redis-server --port 6479 --daemonize no --dir /data --appendonly yes"
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user