Non-root launch

This commit is contained in:
Adam Outler
2025-09-25 14:10:06 -04:00
parent 8ed21a8c07
commit dfcc375fba
8 changed files with 61 additions and 34 deletions

View File

@@ -1,6 +1,7 @@
#!/bin/bash
echo "Starting backend..."
cd "${NETALERTX_APP}" || exit
# Change user to netalertx
export PYTHONPATH="${NETALERTX_SERVER}"
# Start the backend, teeing stdout and stderr to log files and the container's console
python3 -m server > >(tee /app/log/stdout.log) 2> >(tee /app/log/stderr.log >&2)
python3 -m server > >(tee /app/log/stdout.log) 2> >(tee /app/log/stderr.log >&2)