21 lines
406 B
Docker
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"]
|