This repository has been archived on 2024-11-06. You can view files and clone it, but cannot push or open issues or pull requests.
python-api-server/Dockerfile

24 lines
548 B
Text
Raw Normal View History

2023-04-12 16:08:55 +02:00
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 .
2023-04-13 11:03:56 +02:00
COPY index.html ./templates/index.html
2023-04-12 16:08:55 +02:00
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000
2023-04-12 16:28:16 +02:00
CMD [ "python3", "-m" , "flask", "run", "--port", "5000", "--host", "0.0.0.0"]