Files
medi-customers/Dockerfile
2025-03-17 19:57:41 +01:00

24 lines
439 B
Docker

# Python 3.11 als Basis-Image
FROM python:3.11-slim
# Arbeitsverzeichnis setzen
WORKDIR /app
# Kopiere requirements.txt
COPY requirements.txt .
# Installiere Abhängigkeiten
RUN pip install --no-cache-dir -r requirements.txt
# Kopiere den Anwendungscode
COPY . .
# Exponiere Port 5000
EXPOSE 5000
# Setze Umgebungsvariablen
ENV FLASK_APP=app.py
ENV FLASK_ENV=production
# Starte die Anwendung
CMD ["flask", "run", "--host=0.0.0.0"]