rainloop/Dockerfile

41 lines
1.4 KiB
Docker
Raw Normal View History

2016-04-19 19:14:31 +00:00
# http://product_installation_URL/?admin
# Default login is "admin", password is "12345".
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 && \
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
# 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 && \
2020-05-17 20:44:08 +00:00
chown -Rh $USER:$USER $DATA
2016-04-19 19:14:31 +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
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
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)" && \
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
# Copy the php-fpm & nginx configs
2020-05-17 19:39:20 +00:00
COPY etc/ /etc/
2016-05-03 07:02:35 +00:00
USER $USER
CMD php-fpm7 -F