From 39bff56f9b32ea626b74b3462352786cae59c72a Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 25 Sep 2019 05:27:06 +0200 Subject: Update and small modification for OpenShift --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index b5e4b9f..5d5db15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,19 +2,19 @@ FROM jeanblanchard/java:8 LABEL maintainer="James Z.M. Gao " # Download -ADD http://downloads.sourceforge.net/project/davmail/davmail/5.1.0/davmail-5.1.0-2891.zip /opt/ -COPY content / +ADD http://downloads.sourceforge.net/project/davmail/davmail/5.3.1/davmail-5.3.1-3079.zip /opt/ # untar file, add a non-root system user # note we specify a id so as to *try* to avoid collisions on the host RUN set -ex \ && apk --update --no-progress upgrade \ + && mkdir -p /opt/davmail \ && cd /opt \ - && mkdir -p davmail \ - && unzip davmail-5.1.0-2891.zip -d davmail \ + && unzip davmail-5.3.1-3079.zip -d davmail \ && rm -rf /var/cache/apk/* /tmp/* /opt/davmail-* \ - && adduser -S -u 500 -h /var/lib/davmail davmail \ - && chmod 0644 /etc/davmail/* + && adduser -S -u 500 -h /var/lib/davmail davmail + +COPY content / USER davmail -- cgit v1.2.3