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:
9
.dockerignore
Normal file
9
.dockerignore
Normal file
@@ -0,0 +1,9 @@
|
||||
**/__pycache__
|
||||
**/*.pyc
|
||||
**/*.pyo
|
||||
.git
|
||||
.gitignore
|
||||
.paperclip
|
||||
README.md
|
||||
DOKUMENTATION.md
|
||||
webui/cache/*
|
||||
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal 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
21
webui/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user