DAP-75: Docker-Unterstützung für xStream WebUI hinzugefügt

- webui/Dockerfile: Python 3.12-slim Image, Build-Kontext ist das Repo-Root
  damit plugin.video.xstream erreichbar bleibt
- docker-compose.yml: Service xstream-webui auf Port 5000, Cache-Volume
- .dockerignore: __pycache__, .git, .paperclip, etc. ausgeschlossen

Starten: docker compose up --build
This commit is contained in:
DasPoschi
2026-08-20 15:46:25 +02:00
parent ed1ce03b26
commit 75986d91f0
3 changed files with 40 additions and 0 deletions

9
.dockerignore Normal file
View File

@@ -0,0 +1,9 @@
**/__pycache__
**/*.pyc
**/*.pyo
.git
.gitignore
.paperclip
README.md
DOKUMENTATION.md
webui/cache/*

10
docker-compose.yml Normal file
View File

@@ -0,0 +1,10 @@
services:
xstream-webui:
build:
context: .
dockerfile: webui/Dockerfile
ports:
- "5000:5000"
volumes:
- ./webui/cache:/app/webui/cache
restart: unless-stopped

21
webui/Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
# Build context must be the repo root (docker compose sets this automatically)
FROM python:3.12-slim
WORKDIR /app
# Install dependencies first for layer caching
COPY webui/requirements.txt /app/webui/requirements.txt
RUN pip install --no-cache-dir -r /app/webui/requirements.txt
# Copy plugin sources required at runtime
COPY plugin.video.xstream /app/plugin.video.xstream
COPY script.module.xstreamscraper /app/script.module.xstreamscraper
# Copy the web UI itself
COPY webui /app/webui
WORKDIR /app/webui
EXPOSE 5000
CMD ["python", "app.py"]