2017-08-29 22:25:00 +02:00
|
|
|
FROM wonderfall/nginx-php:7.1
|
2017-03-12 18:15:04 +01:00
|
|
|
|
|
|
|
LABEL description "Rainloop is a simple, modern & fast web-based client" \
|
|
|
|
maintainer="Hardware <contact@meshup.net>"
|
2016-05-05 09:15:35 +02:00
|
|
|
|
2016-09-24 12:46:58 +02:00
|
|
|
ARG GPG_FINGERPRINT="3B79 7ECE 694F 3B7B 70F3 11A4 ED7C 49D9 87DA 4591"
|
2016-05-13 09:20:21 +02:00
|
|
|
|
2017-08-29 22:25:00 +02:00
|
|
|
ENV UID=991 GID=991 UPLOAD_MAX_SIZE=25M MEMORY_LIMIT=128M
|
2016-05-05 09:15:35 +02:00
|
|
|
|
2017-08-29 22:25:00 +02:00
|
|
|
RUN apk -U upgrade \
|
2017-06-04 09:36:03 +02:00
|
|
|
&& apk add -t build-dependencies \
|
2016-05-13 09:20:21 +02:00
|
|
|
gnupg \
|
2017-03-17 09:00:13 +01:00
|
|
|
openssl \
|
2017-06-04 09:36:03 +02:00
|
|
|
wget \
|
2016-05-13 09:20:21 +02:00
|
|
|
&& cd /tmp \
|
2017-03-13 10:56:16 +03:00
|
|
|
&& wget -q https://www.rainloop.net/repository/webmail/rainloop-community-latest.zip \
|
|
|
|
&& wget -q https://www.rainloop.net/repository/webmail/rainloop-community-latest.zip.asc \
|
|
|
|
&& wget -q https://www.rainloop.net/repository/RainLoop.asc \
|
2016-05-13 09:20:21 +02:00
|
|
|
&& gpg --import RainLoop.asc \
|
2016-07-29 17:47:33 +02:00
|
|
|
&& FINGERPRINT="$(LANG=C gpg --verify rainloop-community-latest.zip.asc rainloop-community-latest.zip 2>&1 \
|
2016-05-13 09:20:21 +02:00
|
|
|
| sed -n "s#Primary key fingerprint: \(.*\)#\1#p")" \
|
|
|
|
&& if [ -z "${FINGERPRINT}" ]; then echo "Warning! Invalid GPG signature!" && exit 1; fi \
|
2016-09-24 12:46:58 +02:00
|
|
|
&& if [ "${FINGERPRINT}" != "${GPG_FINGERPRINT}" ]; then echo "Warning! Wrong GPG fingerprint!" && exit 1; fi \
|
2016-07-29 17:47:33 +02:00
|
|
|
&& mkdir /rainloop && unzip -q /tmp/rainloop-community-latest.zip -d /rainloop \
|
2016-05-13 09:20:21 +02:00
|
|
|
&& find /rainloop -type d -exec chmod 755 {} \; \
|
|
|
|
&& find /rainloop -type f -exec chmod 644 {} \; \
|
2017-06-04 09:36:03 +02:00
|
|
|
&& apk del build-dependencies \
|
2016-07-02 09:46:21 +02:00
|
|
|
&& rm -rf /tmp/* /var/cache/apk/* /root/.gnupg
|
2016-05-05 09:15:35 +02:00
|
|
|
|
2017-08-27 16:31:04 +02:00
|
|
|
COPY rootfs /
|
2017-08-29 22:25:00 +02:00
|
|
|
RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/*
|
2016-05-05 09:15:35 +02:00
|
|
|
VOLUME /rainloop/data
|
2016-09-24 12:46:58 +02:00
|
|
|
EXPOSE 8888
|
|
|
|
CMD ["run.sh"]
|