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 (20 lines) | stat: -rw-r--r-- 585 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM httpd

RUN apt-get update \
    && apt-get install --no-install-recommends -y \
        python3 python3-dev python3-pip python3-venv \
        libapr1-dev libaprutil1-dev gcc

WORKDIR /usr/local/apache2

ADD examples/wsgi/requirements.txt /tmp/requirements.txt
ADD . /tmp/latest

RUN python3 -m venv venv \
    && . venv/bin/activate \
    && pip install mod_wsgi \
    && pip install -r /tmp/requirements.txt \
    && pip install -e /tmp/latest --upgrade

ADD examples/wsgi/httpd.conf /usr/local/apache2/conf/httpd.conf
ADD examples/wsgi/app.py examples/wsgi/wsgi.py /var/flask/