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