23 lines
429 B
Bash
Executable File
23 lines
429 B
Bash
Executable File
#!/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
|