Files
Schulung_Docker_k8s/carpool/Dockerfile
nutzer26 bed22c6720 added
2022-12-13 17:55:43 +01:00

12 lines
360 B
Docker

# syntax=docker/dockerfile:1
FROM python:3.8-slim-buster
ARG DEBIAN_FRONTEND=noninteractive
ARG DEBCONF_NOWARNINGS="yes"
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install --disable-pip-version-check -r requirements.txt
COPY . .
ENV FLASK_APP=python_rest
EXPOSE 5000
STOPSIGNAL SIGINT
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]