Files
wetterapp/Dockerfile
2024-09-09 10:35:49 +02:00

16 lines
352 B
Docker

# Verwende das offizielle Python-Image
FROM python:3.10-slim
# Setze das Arbeitsverzeichnis im Container
WORKDIR /app
# Kopiere die requirements-Datei und installiere die Abhängigkeiten
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Kopiere den Rest des Codes
COPY . .
# Starte die Anwendung
CMD ["python", "app.py"]