diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c204f34 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +# Basis-Image +FROM python:3.11-slim + +# Arbeitsverzeichnis im Container +WORKDIR /app + +# Abhängigkeiten kopieren und installieren +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +# App-Code kopieren +COPY . . + +# Flask-Umgebungsvariablen setzen +ENV FLASK_APP=app.py +ENV FLASK_RUN_HOST=0.0.0.0 + +# Exponiere Port 5000 +EXPOSE 5000 + +# Starte die App +CMD ["flask", "run"] \ No newline at end of file