Files
wetterstation_python/Dockerfile
2026-01-25 19:48:00 +01:00

21 lines
406 B
Docker

# Multi-stage build: Leichtgewichtiger Container
FROM python:3.13-slim
# Setze Arbeitsverzeichnis
WORKDIR /app
# Installiere Dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Kopiere die Anwendung
COPY wetterstation.py .
COPY static/ static/
COPY templates/ templates/
# Exponiere Port
EXPOSE 5003
# Starten Sie die Anwendung
CMD ["python", "wetterstation.py"]