2016-04-19 19:14:31 +00:00
|
|
|
# http://product_installation_URL/?admin
|
|
|
|
# Default login is "admin", password is "12345".
|
2020-05-17 10:44:39 +00:00
|
|
|
FROM alpine:3.11
|
2016-04-19 19:14:31 +00:00
|
|
|
MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com>
|
|
|
|
|
|
|
|
# Install the dependencies
|
|
|
|
RUN apk update && \
|
2020-05-17 10:44:39 +00:00
|
|
|
apk add tzdata wget unzip gnupg1 php7-fpm \
|
2017-06-27 21:14:09 +00:00
|
|
|
php7-curl php7-json php7-dom php7-zlib php7-iconv php7-openssl \
|
|
|
|
php7-pdo_sqlite php7-pdo_mysql php7-pdo_pgsql
|
2016-04-19 19:14:31 +00:00
|
|
|
|
2020-05-17 10:44:39 +00:00
|
|
|
# Create the application user under which PHP-FPM will run
|
|
|
|
ENV USER user
|
|
|
|
ENV UID 1000
|
2016-04-19 19:14:31 +00:00
|
|
|
ENV HOME /home/$USER
|
|
|
|
ENV DATA /opt/rainloop
|
|
|
|
RUN adduser -D -u $UID -h $HOME -s /bin/true $USER && \
|
|
|
|
mkdir -p $DATA && \
|
|
|
|
touch /var/log/php-fpm.log && \
|
|
|
|
chown -Rh $USER:$USER $DATA /var/log/php-fpm.log
|
|
|
|
|
2020-05-17 10:44:39 +00:00
|
|
|
# Obtain RainLoop Webmail Community edition,
|
2016-04-19 19:14:31 +00:00
|
|
|
# verify its integrity using GnuPG and then decompress it
|
|
|
|
USER $USER
|
2020-05-17 10:44:39 +00:00
|
|
|
ENV RLFILE rainloop-1.14.0.zip
|
|
|
|
ENV RLFILESIG rainloop-1.14.0.zip.asc
|
2016-04-19 19:14:31 +00:00
|
|
|
ENV FINGERPRINT "3B797ECE694F3B7B70F311A4ED7C49D987DA4591"
|
|
|
|
WORKDIR $DATA
|
2020-05-17 10:44:39 +00:00
|
|
|
RUN wget --progress=bar:force:noscroll -O $RLFILE https://github.com/RainLoop/rainloop-webmail/releases/download/v1.14.0/$RLFILE && \
|
|
|
|
wget --progress=bar:force:noscroll -O $RLFILESIG https://github.com/RainLoop/rainloop-webmail/releases/download/v1.14.0/$RLFILESIG && \
|
2016-04-19 19:14:31 +00:00
|
|
|
export GNUPGHOME="$(mktemp -d)" && \
|
2020-05-17 10:44:39 +00:00
|
|
|
gpg --keyserver keyserver.ubuntu.com --recv-keys "$FINGERPRINT" && \
|
2016-04-19 19:14:31 +00:00
|
|
|
gpg --batch --verify $RLFILESIG $RLFILE && \
|
|
|
|
unzip $RLFILE && \
|
|
|
|
rm -rf "$GNUPGHOME" $RLFILE
|
|
|
|
|
2020-05-17 10:44:39 +00:00
|
|
|
# Copy the php-fpm & nginx configs
|
2017-06-27 21:14:09 +00:00
|
|
|
COPY php-fpm.conf /etc/php7/php-fpm.conf
|
2020-05-17 10:44:39 +00:00
|
|
|
COPY rainloop.conf /etc/nginx/conf.d/rainloop.conf
|
2016-05-03 07:02:35 +00:00
|
|
|
|
2020-05-17 10:44:39 +00:00
|
|
|
USER $USER
|
|
|
|
CMD php-fpm7 -F
|