You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.4 KiB

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