-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (21 loc) · 877 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM keppel.eu-de-1.cloud.sap/ccloud-dockerhub-mirror/library/ubuntu:latest
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y python3 \
&& apt-get install -y python3-pip \
&& apt-get install -y curl \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
ARG FOLDERNAME=arista_exporter
RUN mkdir /${FOLDERNAME}
WORKDIR /${FOLDERNAME}
RUN pip3 install --break-system-packages --upgrade pip --ignore-install
COPY requirements.txt /${FOLDERNAME}
RUN pip3 install --break-system-packages --no-cache-dir -r requirements.txt
COPY *.py /${FOLDERNAME}/
COPY config.yml /${FOLDERNAME}/
ENTRYPOINT [ "python3", "-u", "./main.py"]
LABEL source_repository="https://github.com/sapcc/arista-eapi-exporter"
LABEL maintainer="Bernd Kuespert <[email protected]>"