mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-05-08 10:24:48 +02:00
fa18c032e2
Seed safe static backend data into fresh Docker volumes, tighten Docker build-context exclusions, avoid optional env warnings, and make the frontend healthcheck use the IPv4 loopback path that works inside the container.
18 lines
516 B
Bash
18 lines
516 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
# Docker named volumes hide files that were baked into /app/data at image build
|
|
# time. Seed safe, static data into a fresh volume so first-run Docker installs
|
|
# behave like source installs without bundling local runtime secrets.
|
|
if [ -d /app/image-data ]; then
|
|
mkdir -p /app/data
|
|
find /app/image-data -mindepth 1 -maxdepth 1 -type f | while IFS= read -r src; do
|
|
dest="/app/data/$(basename "$src")"
|
|
if [ ! -e "$dest" ]; then
|
|
cp "$src" "$dest" || true
|
|
fi
|
|
done
|
|
fi
|
|
|
|
exec "$@"
|