9 lines
366 B
Bash
9 lines
366 B
Bash
#!/bin/sh
|
|
set -e
|
|
# Läuft bereits als node (USER node im Image): keine root-Rechte nötig.
|
|
mkdir -p "${DATA_DIR:-/app/data}" "${BACKUPS_DIR:-/app/backups}"
|
|
# Docker injects the container hostname; Next.js would bind only to its IP,
|
|
# making the in-container 127.0.0.1 health check fail. Listen on all interfaces.
|
|
export HOSTNAME="${APP_HOSTNAME:-0.0.0.0}"
|
|
exec "$@"
|