initial relay scaffold
This commit is contained in:
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
DATA_DIR="/data"
|
||||
CONFIG_DIR="$DATA_DIR/config"
|
||||
|
||||
mkdir -p "$CONFIG_DIR"
|
||||
|
||||
# Ensure the volume is writable by the non-root node user
|
||||
chown -R 1001:1001 "$DATA_DIR" 2>/dev/null || true
|
||||
|
||||
export DATA_DIR="$DATA_DIR"
|
||||
export PORT="${PORT:-3002}"
|
||||
export HOSTNAME="0.0.0.0"
|
||||
|
||||
echo "Starting Recap Relay..."
|
||||
echo " Node: $(node --version)"
|
||||
echo " Data: $DATA_DIR"
|
||||
echo " Port: $PORT"
|
||||
|
||||
cd /app/server
|
||||
exec node index.js
|
||||
Reference in New Issue
Block a user