rycus86/prometheus_flask_exporter

View on GitHub
examples/flask-multi-processes/Dockerfile

Summary

Maintainability
Test Coverage
FROM python:3.11-alpine

RUN apk add --no-cache curl \
  && pip install flask prometheus_client

ADD . /tmp/latest
RUN pip install -e /tmp/latest --upgrade

ADD examples/flask-multi-processes /var/flask
WORKDIR /var/flask

ENV PROMETHEUS_MULTIPROC_DIR /tmp
CMD python /var/flask/processes_example.py