forked from sapcc/vrops-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (17 loc) · 981 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM keppel.eu-de-1.cloud.sap/ccloud-dockerhub-mirror/library/alpine:latest
ARG BININFO_BUILD_DATE BININFO_COMMIT_HASH BININFO_VERSION
LABEL source_repository="https://github.com/sapcc/vrops-exporter" \
org.opencontainers.image.url="https://github.com/sapcc/vrops-exporter" \
org.opencontainers.image.created=${BININFO_BUILD_DATE} \
org.opencontainers.image.revision=${BININFO_COMMIT_HASH} \
org.opencontainers.image.version=${BININFO_VERSION}
RUN apk --update add python3 openssl ca-certificates bash python3-dev git py3-pip && \
apk --update add --virtual build-dependencies libffi-dev openssl-dev libxml2 libxml2-dev libxslt libxslt-dev build-base
RUN git config --global http.sslVerify false
RUN git clone https://github.com/sapcc/vrops-exporter.git
RUN pip3 install --upgrade pip
RUN pip3 install --ignore-installed six
RUN pip install --upgrade cffi
ADD . vrops-exporter/
RUN pip3 install --upgrade -r vrops-exporter/requirements.txt
WORKDIR vrops-exporter/