FROM ubuntu:focal # deaktiviert Nachfragen beim installieren von Paketen ENV DEBIAN_FRONTEND=noninteractive # hadolint ignore=DL3008,DL3028,DL4006 RUN apt-get update && \ apt-get -y --no-install-recommends install \ python3-pip && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* WORKDIR /app COPY requirements.txt . COPY app.py . COPY index.html ./templates/index.html RUN pip install --no-cache-dir -r requirements.txt EXPOSE 5000 CMD [ "python3", "-m" , "flask", "run", "--port", "5000", "--host", "0.0.0.0"]