rainloop/Dockerfile
2020-05-17 22:44:08 +02:00

41 lines
1.4 KiB
Docker

# http://product_installation_URL/?admin
# Default login is "admin", password is "12345".
FROM alpine:3.11
MAINTAINER Andrey Arapov <andrey.arapov@nixaid.com>
# Install the dependencies
RUN apk update && \
apk add tzdata wget unzip gnupg1 php7-fpm \
php7-curl php7-json php7-dom php7-zlib php7-iconv php7-openssl \
php7-pdo_sqlite php7-pdo_mysql php7-pdo_pgsql
# Create the application user under which PHP-FPM will run
ENV USER user
ENV UID 1000
ENV HOME /home/$USER
ENV DATA /opt/rainloop
RUN adduser -D -u $UID -h $HOME -s /bin/true $USER && \
mkdir -p $DATA && \
chown -Rh $USER:$USER $DATA
# Obtain RainLoop Webmail Community edition,
# verify its integrity using GnuPG and then decompress it
USER $USER
ENV RLFILE rainloop-1.14.0.zip
ENV RLFILESIG rainloop-1.14.0.zip.asc
ENV FINGERPRINT "3B797ECE694F3B7B70F311A4ED7C49D987DA4591"
WORKDIR $DATA
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 && \
export GNUPGHOME="$(mktemp -d)" && \
gpg --keyserver keyserver.ubuntu.com --recv-keys "$FINGERPRINT" && \
gpg --batch --verify $RLFILESIG $RLFILE && \
unzip $RLFILE && \
rm -rf "$GNUPGHOME" $RLFILE
# Copy the php-fpm & nginx configs
COPY etc/ /etc/
USER $USER
CMD php-fpm7 -F