forked from phsmith/rundeck_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (17 loc) · 786 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:alpine
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL maintainer="Phillipe Smith <[email protected]>" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="Rundeck Exporter" \
org.label-schema.description="Rundeck metrics exporter for Prometheus" \
org.label-schema.url="https://hub.docker.com/r/phsmith/rundeck-exporter" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/phsmith/rundeck_exporter" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
COPY requirements.txt $PWD/requirements.txt
COPY rundeck_exporter.py /usr/bin
RUN pip install --no-cache-dir --disable-pip-version-check -r requirements.txt
ENTRYPOINT ["/usr/bin/rundeck_exporter.py"]