2023-08-16 20:50:01 -07:00
|
|
|
#!/usr/bin/env sh
|
2023-06-08 08:01:07 -07:00
|
|
|
|
2023-08-01 18:56:10 -07:00
|
|
|
export LD_PRELOAD=/usr/lib/$(arch)-linux-gnu/libmimalloc.so.2
|
|
|
|
|
2023-08-01 15:07:52 -07:00
|
|
|
if [ "$DB_URL_FILE" ]; then
|
|
|
|
export DB_URL=$(cat $DB_URL_FILE)
|
|
|
|
unset DB_URL_FILE
|
|
|
|
fi
|
|
|
|
|
2023-06-08 08:01:07 -07:00
|
|
|
if [ "$DB_HOSTNAME_FILE" ]; then
|
|
|
|
export DB_HOSTNAME=$(cat $DB_HOSTNAME_FILE)
|
|
|
|
unset DB_HOSTNAME_FILE
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$DB_DATABASE_NAME_FILE" ]; then
|
|
|
|
export DB_DATABASE_NAME=$(cat $DB_DATABASE_NAME_FILE)
|
|
|
|
unset DB_DATABASE_NAME_FILE
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$DB_USERNAME_FILE" ]; then
|
|
|
|
export DB_USERNAME=$(cat $DB_USERNAME_FILE)
|
|
|
|
unset DB_USERNAME_FILE
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$DB_PASSWORD_FILE" ]; then
|
|
|
|
export DB_PASSWORD=$(cat $DB_PASSWORD_FILE)
|
|
|
|
unset DB_PASSWORD_FILE
|
|
|
|
fi
|
|
|
|
|
2023-07-15 08:30:52 -07:00
|
|
|
if [ "$REDIS_PASSWORD_FILE" ]; then
|
|
|
|
export REDIS_PASSWORD=$(cat $REDIS_PASSWORD_FILE)
|
|
|
|
unset REDIS_PASSWORD_FILE
|
|
|
|
fi
|
|
|
|
|
2023-11-30 13:59:47 -07:00
|
|
|
exec node /usr/src/app/dist/main $@
|