rycus86/prometheus_flask_exporter

View on GitHub
examples/uwsgi/Dockerfile

Summary

Maintainability
Test Coverage
FROM python:3.8-alpine

RUN apk add --no-cache gcc musl-dev linux-headers

ADD examples/uwsgi/requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt

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

ADD examples/uwsgi/server.py /var/flask/
WORKDIR /var/flask

ENV prometheus_multiproc_dir /tmp
ENV METRICS_PORT 9200

CMD uwsgi --http 0.0.0.0:4000 --module server:app --master --processes 4 --threads 2