22 lines
423 B
Docker
22 lines
423 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Systemabhängigkeiten (optional, falls gebraucht)
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
libpq-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Requirements installieren
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Code kopieren
|
|
COPY . .
|
|
|
|
ENV FLASK_APP=app.py
|
|
ENV FLASK_ENV=development
|
|
|
|
CMD ["flask", "run", "--host=0.0.0.0"]
|