feat(): add UPLOAD_MAX_SIZE variable
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -5,7 +5,7 @@ LABEL description "Rainloop is a simple, modern & fast web-based client" \
|
||||
|
||||
ARG GPG_FINGERPRINT="3B79 7ECE 694F 3B7B 70F3 11A4 ED7C 49D9 87DA 4591"
|
||||
|
||||
ENV UID=991 GID=991
|
||||
ENV UID=991 GID=991 UPLOAD_MAX_SIZE=25M
|
||||
|
||||
RUN echo "@community https://nl.alpinelinux.org/alpine/v3.6/community" >> /etc/apk/repositories \
|
||||
&& apk -U upgrade \
|
||||
@@ -35,28 +35,19 @@ RUN echo "@community https://nl.alpinelinux.org/alpine/v3.6/community" >> /etc/a
|
||||
&& 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 \
|
||||
&& echo "Verifying authenticity of rainloop-community-latest.zip using GPG..." \
|
||||
&& gpg --import RainLoop.asc \
|
||||
&& FINGERPRINT="$(LANG=C gpg --verify rainloop-community-latest.zip.asc rainloop-community-latest.zip 2>&1 \
|
||||
| sed -n "s#Primary key fingerprint: \(.*\)#\1#p")" \
|
||||
&& if [ -z "${FINGERPRINT}" ]; then echo "Warning! Invalid GPG signature!" && exit 1; fi \
|
||||
&& if [ "${FINGERPRINT}" != "${GPG_FINGERPRINT}" ]; then echo "Warning! Wrong GPG fingerprint!" && exit 1; fi \
|
||||
&& echo "All seems good, now unzipping rainloop-community-latest.zip..." \
|
||||
&& mkdir /rainloop && unzip -q /tmp/rainloop-community-latest.zip -d /rainloop \
|
||||
&& find /rainloop -type d -exec chmod 755 {} \; \
|
||||
&& find /rainloop -type f -exec chmod 644 {} \; \
|
||||
&& apk del build-dependencies \
|
||||
&& rm -rf /tmp/* /var/cache/apk/* /root/.gnupg
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY php-fpm.conf /etc/php7/php-fpm.conf
|
||||
COPY s6.d /etc/s6.d
|
||||
COPY run.sh /usr/local/bin/run.sh
|
||||
|
||||
RUN chmod +x /usr/local/bin/run.sh /etc/s6.d/*/* /etc/s6.d/.s6-svscan/*
|
||||
|
||||
COPY rootfs /
|
||||
RUN chmod +x /usr/local/bin/run.sh /services/*/run /services/.s6-svscan/*
|
||||
VOLUME /rainloop/data
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
CMD ["run.sh"]
|
||||
|
Reference in New Issue
Block a user