Dockerized

This commit is contained in:
rxf
2025-10-02 09:19:32 +02:00
parent 88f80252d6
commit 3fc1b91041
8 changed files with 275 additions and 5 deletions

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
# Verwende Python 3.11 als Basis-Image
FROM python:3.11-slim
# Setze Arbeitsverzeichnis
WORKDIR /app
# Kopiere requirements.txt und installiere Dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Kopiere den Anwendungscode
COPY main.py .
# Erstelle Verzeichnis für Videospeicher
RUN mkdir -p /app/videospeicher
# Setze Umgebungsvariablen
ENV PYTHONUNBUFFERED=1
# Definiere Volume für persistente Datenspeicherung
VOLUME ["/app/videospeicher"]
# Führe das Skript aus
CMD ["python", "main.py"]