-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
36 lines (29 loc) · 1.09 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
27
28
29
30
31
32
33
34
35
36
FROM alpine:3.17
ARG VERSION AUTHOR TITLE DESCRIPTION LICENSES URL CREATED REVISION
LABEL org.opencontainers.image.version="$VERSION" \
org.opencontainers.image.authors="$AUTHOR" \
org.opencontainers.image.title="$TITLE" \
org.opencontainers.image.description="$DESCRIPTION" \
org.opencontainers.image.licenses="$LICENSES" \
org.opencontainers.image.url="$URL" \
org.opencontainers.image.created="$CREATED" \
org.opencontainers.image.revision="$REVISION"
RUN apk -U --no-cache add \
python3 \
py3-pip \
py3-requests \
py3-lxml \
git && \
git clone https://github.com/telekom-security/ewsposter /opt/ewsposter && \
cd /opt/ewsposter && \
mkdir -p spool log json && \
git checkout dev_v1.25.0 && \
pip install --no-cache-dir -r requirements.txt && \
adduser --disabled-password --shell /bin/ash --uid 2000 ews && \
cp /opt/ewsposter/ews.cfg.docker /opt/ewsposter/ews.cfg && \
chown -R ews:ews /opt/ewsposter && \
apk del git
STOPSIGNAL SIGKILL
USER ews:ews
WORKDIR /opt/ewsposter
CMD [ "python3", "ews.py", "-l 1" ]