2022-11-10 15:51:22 +00:00
|
|
|
# syntax=docker/dockerfile-upstream:1.4.3
|
2019-08-23 15:24:21 -04:00
|
|
|
|
2022-11-10 15:51:22 +00:00
|
|
|
#roundcube image
|
|
|
|
FROM base
|
2021-11-04 14:22:12 +01:00
|
|
|
|
2022-11-10 15:51:22 +00:00
|
|
|
ARG VERSION
|
2021-11-17 20:00:04 +00:00
|
|
|
LABEL version=$VERSION
|
|
|
|
|
2022-11-10 15:51:22 +00:00
|
|
|
RUN apk add --no-cache \
|
|
|
|
nginx gpg gpg-agent \
|
|
|
|
php8 php8-fpm php8-mbstring php8-zip php8-xml php8-simplexml \
|
|
|
|
php8-dom php8-curl php8-exif gd php8-gd php8-iconv php8-intl php8-openssl \
|
|
|
|
php8-pdo_sqlite php8-pdo_mysql php8-pdo_pgsql php8-pdo php8-sodium libsodium php8-tidy php8-pecl-uuid \
|
|
|
|
php8-pspell php8-pecl-imagick php8-opcache php8-session php8-sockets php8-fileinfo \
|
|
|
|
&& rm /etc/nginx/http.d/default.conf \
|
|
|
|
&& rm /etc/php8/php-fpm.d/www.conf \
|
|
|
|
&& mkdir -p /run/nginx \
|
|
|
|
&& mkdir -p /conf
|
2019-07-25 10:33:57 +02:00
|
|
|
|
2022-08-14 21:01:56 +00:00
|
|
|
ENV ROUNDCUBE_URL https://github.com/roundcube/roundcubemail/releases/download/1.5.3/roundcubemail-1.5.3-complete.tar.gz
|
2022-11-10 15:51:22 +00:00
|
|
|
ENV CARDDAV_URL https://github.com/mstilkerich/rcmcarddav/releases/download/v4.4.3/carddav-v4.4.3.tar.gz
|
2019-12-26 20:29:45 +01:00
|
|
|
|
2022-11-10 15:51:22 +00:00
|
|
|
RUN \
|
|
|
|
cd /var/www \
|
2021-06-30 12:36:11 +02:00
|
|
|
&& curl -sL ${ROUNDCUBE_URL} | tar xz \
|
|
|
|
&& curl -sL ${CARDDAV_URL} | tar xz \
|
2022-11-10 15:51:22 +00:00
|
|
|
&& mv roundcubemail-* webmail \
|
|
|
|
&& mkdir -p /var/www/webmail/config \
|
|
|
|
&& mv carddav webmail/plugins/ \
|
|
|
|
&& cd webmail \
|
2021-11-03 15:18:00 +01:00
|
|
|
&& rm -rf CHANGELOG.md SECURITY.md INSTALL LICENSE README.md UPGRADING composer.json-dist installer composer.* \
|
2022-11-10 15:51:22 +00:00
|
|
|
&& ln -sf index.php /var/www/webmail/sso.php \
|
|
|
|
&& chmod -R u+w,a+rX /var/www/webmail \
|
|
|
|
&& chown -R nginx:nginx /var/www/webmail \
|
2021-12-18 17:43:21 +01:00
|
|
|
&& rm -rf plugins/{autologon,example_addressbook,http_authentication,krb_authentication,new_user_identity,password,redundant_attachments,squirrelmail_usercopy,userinfo,virtuser_file,virtuser_query}
|
|
|
|
|
2016-02-24 07:44:49 +01:00
|
|
|
|
2022-11-10 15:51:22 +00:00
|
|
|
# nginx / PHP config files
|
|
|
|
COPY config/nginx-roundcube.conf /conf/nginx-roundcube.conf
|
|
|
|
COPY config/php-roundcube.conf /etc/php8/php-fpm.d/roundcube.conf
|
|
|
|
COPY config/php.ini /conf/php.ini
|
|
|
|
COPY config/config.inc.php /conf/config.inc.php
|
|
|
|
COPY login/mailu.php /var/www/webmail/plugins/mailu/mailu.php
|
|
|
|
COPY config/config.inc.carddav.php /var/www/webmail/plugins/carddav/config.inc.php
|
|
|
|
|
2022-11-10 20:03:26 +01:00
|
|
|
COPY start.py /start.py
|
2016-02-24 07:44:49 +01:00
|
|
|
|
2018-09-28 17:12:50 +02:00
|
|
|
EXPOSE 80/tcp
|
2021-12-18 17:43:21 +01:00
|
|
|
VOLUME /data
|
|
|
|
VOLUME /overrides
|
2018-09-28 17:12:50 +02:00
|
|
|
|
2018-10-23 11:58:36 +03:00
|
|
|
CMD /start.py
|
2018-10-16 21:38:12 +02:00
|
|
|
|
2022-11-10 15:51:22 +00:00
|
|
|
HEALTHCHECK CMD curl -f -L http://localhost/ping || exit 1
|
2021-11-03 15:18:00 +01:00
|
|
|
|
2021-12-17 22:23:08 +01:00
|
|
|
RUN echo $VERSION >> /version
|