forked from idealista/prom2teams
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (28 loc) · 878 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 python:3.7-alpine AS builder
WORKDIR /prom2teams
COPY LICENSE \
MANIFEST.in \
README.md \
requirements.txt \
setup.py \
./
COPY prom2teams/ prom2teams
COPY bin/ bin
RUN apk add gcc libc-dev yaml-dev linux-headers --no-cache \
&& python setup.py bdist_wheel
FROM python:3.7-alpine
LABEL maintainer="[email protected]"
EXPOSE 8089
WORKDIR /opt/prom2teams
COPY docker/rootfs .
COPY --from=builder /prom2teams/dist .
RUN apk add gcc libc-dev yaml-dev linux-headers --no-cache \
&& pip install prom2teams*.whl
ENV PROM2TEAMS_PORT="8089" \
PROM2TEAMS_HOST="0.0.0.0" \
PROM2TEAMS_LOGLEVEL="INFO" \
PROM2TEAMS_CONNECTOR="" \
PROM2TEAMS_GROUP_ALERTS_BY="" \
APP_CONFIG_FILE="/opt/prom2teams/config.ini" \
PROM2TEAMS_PROMETHEUS_METRICS="true"
ENTRYPOINT ["sh", "prom2teams_start.sh"]