fix: Build-Dateien ins Root kopiert, .dockerignore optimiert
- 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>
This commit is contained in:
parent
37dff4de69
commit
4424398391
3 changed files with 35 additions and 2 deletions
|
|
@ -1,6 +1,11 @@
|
|||
# Tar-Archive nicht in den Build-Kontext einschliessen
|
||||
# Tar-Archive und Docker-Exports (sehr gross!)
|
||||
*.tar
|
||||
*.tar.gz
|
||||
docker-exports/
|
||||
|
||||
# Alt-Backups (sehr gross!)
|
||||
alt/
|
||||
_extract/
|
||||
|
||||
# Alte Projektverzeichnisse
|
||||
AV1 Encoder*
|
||||
|
|
@ -14,8 +19,12 @@ python.data-tv-file-v2/
|
|||
*.pyc
|
||||
__pycache__/
|
||||
|
||||
# Runtime-Daten
|
||||
# Runtime-Daten (werden als Volumes gemountet)
|
||||
data/
|
||||
logs/
|
||||
video-konverter/app/cfg/settings.yaml
|
||||
video-konverter/app/cfg/*.json
|
||||
|
||||
# Dokumentation (nicht im Image benoetigt)
|
||||
README.md
|
||||
CHANGELOG.md
|
||||
|
|
|
|||
18
entrypoint.sh
Normal file
18
entrypoint.sh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/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
|
||||
6
requirements.txt
Normal file
6
requirements.txt
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
aiohttp>=3.9.0
|
||||
aiohttp-jinja2>=1.6
|
||||
jinja2>=3.1.0
|
||||
PyYAML>=6.0
|
||||
aiomysql>=0.2.0
|
||||
tvdb-v4-official>=1.1.0
|
||||
Loading…
Reference in a new issue