diff options
author | James Z.M. Gao <gaozhm@mvad.com> | 2016-05-09 13:05:50 +0800 |
---|---|---|
committer | James Z.M. Gao <gaozhm@mvad.com> | 2016-05-09 13:05:50 +0800 |
commit | 304fb90cab0c5a5efa239a783eccad6abbb1acbc (patch) | |
tree | 3208cad2da2b4c6b4c750c50dcfcfb10629fc404 | |
parent | d6b0b1a3a8e0527f51750aa314ed317bf04b1eaf (diff) | |
download | davmail-304fb90cab0c5a5efa239a783eccad6abbb1acbc.tar.gz davmail-304fb90cab0c5a5efa239a783eccad6abbb1acbc.tar.bz2 davmail-304fb90cab0c5a5efa239a783eccad6abbb1acbc.tar.xz davmail-304fb90cab0c5a5efa239a783eccad6abbb1acbc.zip |
update exposed ports
-rw-r--r-- | Dockerfile | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -7,13 +7,14 @@ COPY content / # untar file, add a non-root system user # note we specify a id so as to *try* to avoid collisions on the host -RUN apk --update upgrade && \ - cd /opt && \ - tar -xzv -f davmail-linux-x86_64-4.7.2-2427.tgz && \ - mv /opt/davmail-*/* /opt/davmail/ && \ - rm -rf /var/cache/apk/* /tmp/* /opt/davmail-* && \ - adduser -S -u 500 -h /var/lib/davmail davmail && \ - chmod 0644 /etc/davmail/* +RUN set -ex \ + && apk --update --no-progress upgrade \ + && cd /opt \ + && tar -xzv -f davmail-linux-x86_64-4.7.2-2427.tgz \ + && mv /opt/davmail-*/* /opt/davmail/ \ + && rm -rf /var/cache/apk/* /tmp/* /opt/davmail-* \ + && adduser -S -u 500 -h /var/lib/davmail davmail \ + && chmod 0644 /etc/davmail/* USER davmail @@ -21,9 +22,10 @@ USER davmail VOLUME ["/etc/davmail/davmail.p12"] EXPOSE 1080 -EXPOSE 1143 -EXPOSE 1389 -EXPOSE 1110 -EXPOSE 1025 +EXPOSE 993 +EXPOSE 636 +EXPOSE 995 +EXPOSE 587 + WORKDIR /opt/davmail ENTRYPOINT ["/opt/davmail/entrypoint.sh"] |