File: Dockerfile

package info (click to toggle)
prometheus-flask-exporter 0.23.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 896 kB
  • sloc: python: 2,889; sh: 709; makefile: 4
file content (12 lines) | stat: -rw-r--r-- 396 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
FROM python:3.11-alpine

# werkzeug needs to be pinned due to https://github.com/python-restx/flask-restx/issues/460
RUN apk add --no-cache curl && pip install flask flask-restx prometheus_client werkzeug==2.0.*

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

ADD examples/restplus-default-metrics/server.py /var/flask/example.py
WORKDIR /var/flask

CMD python /var/flask/example.py