forked from louisfelix/azure-health-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (22 loc) · 1.06 KB
/
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
FROM golang:1.12 as builder
WORKDIR /azure-health-exporter/
COPY . .
RUN make getpromu test build
FROM ubuntu:18.04
COPY --from=builder /azure-health-exporter/azure-health-exporter /azure-health-exporter
ADD ./resources /resources
RUN /resources/build && rm -rf /resources
USER ahe
EXPOSE 9613
WORKDIR /opt/azure-health-exporter
ENTRYPOINT [ "/opt/azure-health-exporter/azure-health-exporter" ]
LABEL maintainer="FXinnovation CloudToolDevelopment <[email protected]>" \
"org.label-schema.name"="azure-health-exporter" \
"org.label-schema.base-image.name"="docker.io/library/ubuntu" \
"org.label-schema.base-image.version"="18.04" \
"org.label-schema.description"="azure-health-exporter in a container" \
"org.label-schema.url"="https://github.com/FXinnovation/azure-health-exporter" \
"org.label-schema.vcs-url"="https://github.com/FXinnovation/azure-health-exporter" \
"org.label-schema.vendor"="FXinnovation" \
"org.label-schema.schema-version"="1.0.0-rc.1" \
"org.label-schema.usage"="Please see README.md"