- requirements.txt und entrypoint.sh ins Root (Dockerfile erwartet sie dort) - .dockerignore erweitert: alt/, docker-exports/, *.tar ausgeschlossen - Reduziert Build-Context von 2.3GB auf 218KB Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
563 B
Bash
18 lines
563 B
Bash
#!/bin/bash
|
|
# Entrypoint: Kopiert Default-Konfigdateien ins gemountete cfg-Verzeichnis,
|
|
# falls sie dort nicht existieren (z.B. bei Erstinstallation auf Unraid).
|
|
|
|
CFG_DIR="/opt/video-konverter/app/cfg"
|
|
DEFAULTS_DIR="/opt/video-konverter/cfg_defaults"
|
|
|
|
# Alle Default-Dateien kopieren, wenn nicht vorhanden
|
|
for file in "$DEFAULTS_DIR"/*; do
|
|
filename=$(basename "$file")
|
|
if [ ! -f "$CFG_DIR/$filename" ]; then
|
|
echo "Kopiere Default-Config: $filename"
|
|
cp "$file" "$CFG_DIR/$filename"
|
|
fi
|
|
done
|
|
|
|
# Anwendung starten
|
|
exec python3 __main__.py
|