-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (21 loc) · 845 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
############################################################
# Dockerfile to build logfile-notifications container images
# Based on python
############################################################
FROM python:3-alpine
# File Author / Maintainer
MAINTAINER ttobias
# Copy script into container
COPY . script
RUN apk add --update ca-certificates && \
apk add tzdata && \
apk add git --virtual .build-deps && \
cd /script/ && \
git fetch --unshallow --tags && \
echo -n $(git describe --long --always --tags) > /script/.version && \
echo " ($(git show -s --format=%ci --date=local | awk '{print substr($0,0,19)}'))" >> /script/.version && \
apk del .build-deps && \
rm -rf /script/.git && \
pip install -r requirements.txt
ENTRYPOINT ["python", "/script/notifications.py"]
CMD ["config.yaml"]