learn-rollouts/hello-world/Dockerfile
2024-03-17 21:44:55 -05:00

9 lines
216 B
Docker

From python:3.11
RUN pip install flask
WORKDIR /app
COPY hello-world/app.py .
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
HEALTHCHECK CMD curl --fail http://localhost:5000/healthz || exit 1
CMD ["flask", "run"]