2022-06-29 18:14:25 +05:00
|
|
|
FROM code.pztrn.name/containers/mirror/alpine:3.16.0
|
2019-12-22 22:58:44 +05:00
|
|
|
|
|
|
|
# Install necessary things
|
|
|
|
RUN apk add --no-cache \
|
|
|
|
git \
|
|
|
|
nginx \
|
2022-06-29 18:15:16 +05:00
|
|
|
php8-curl \
|
|
|
|
php8-dom \
|
|
|
|
php8-fpm \
|
|
|
|
php8-iconv \
|
|
|
|
php8-json \
|
|
|
|
php8-openssl \
|
|
|
|
php8-pdo_mysql \
|
|
|
|
php8-pdo_pgsql \
|
|
|
|
php8-pdo_sqlite \
|
|
|
|
php8-xml \
|
2019-12-22 22:58:44 +05:00
|
|
|
s6 \
|
|
|
|
unzip \
|
|
|
|
wget && \
|
2022-06-29 18:23:40 +05:00
|
|
|
rm /etc/php8/php-fpm.d/www.conf
|
2019-12-22 22:58:44 +05:00
|
|
|
|
|
|
|
# Get rainloop.
|
|
|
|
RUN mkdir -p /var/www/rainloop && \
|
|
|
|
cd /var/www/rainloop && \
|
2021-07-08 16:26:40 +05:00
|
|
|
wget https://github.com/RainLoop/rainloop-webmail/releases/download/v1.16.0/rainloop-community-1.16.0.zip && \
|
2019-12-22 22:58:44 +05:00
|
|
|
ls -la && \
|
|
|
|
unzip rainloop-community-*.zip && \
|
|
|
|
chown -R nginx:nginx /var/www/rainloop && \
|
|
|
|
rm *.zip
|
|
|
|
|
|
|
|
# Configure container
|
|
|
|
COPY configs/ /etc/
|
|
|
|
|
|
|
|
# Configure s6.
|
|
|
|
RUN chmod -R +x /etc/s6/* \
|
|
|
|
&& chmod +x /etc/s6/.s6-svscan/finish
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
VOLUME [ "/var/www/rainloop/data" ]
|
|
|
|
|
2020-06-20 21:09:03 +05:00
|
|
|
ENTRYPOINT ["/bin/s6-svscan", "/etc/s6"]
|