pse2_ff/project/backend/Dockerfile

16 lines
339 B
Docker
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

# 1. Python-Image verwenden
FROM python:3.11-slim
# 2. Arbeitsverzeichnis im Container setzen
WORKDIR /app
# 3. requirements.txt kopieren und Pakete installieren
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 4. Quellcode kopieren (z.B. app.py)
COPY . .
# 5. Flask-App starten
CMD ["python", "app.py"]