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.
 
 
roundcube/Dockerfile

52 lines
1.8 KiB

FROM registry.sindominio.net/php-fpm
ENV SHA256 "f03968381156fe790d858af7e069c5550a8577fb964f96624434895272053838"
ENV ROUNDCUBEMAIL_VERSION 1.5.2
RUN dpkg -s php-fpm | grep Version | cut -f2 -d" " | cut -d":" -f2 | cut -d"+" -f1 > /tmp/php-fpm.version
COPY conf/roundcube.php.ini /tmp/php.ini
RUN PHP_VERSION=$(cat /tmp/php-fpm.version) && \
cp /tmp/php.ini /etc/php/$PHP_VERSION/fpm/php.ini
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl ca-certificates
RUN curl -o roundcubemail.tar.gz -fSL https://github.com/roundcube/roundcubemail/releases/download/${ROUNDCUBEMAIL_VERSION}/roundcubemail-${ROUNDCUBEMAIL_VERSION}-complete.tar.gz; \
echo "${SHA256} roundcubemail.tar.gz" > roundcubemail.tar.gz.asc && \
sha256sum -c roundcubemail.tar.gz.asc && \
mkdir /roundcubemail && \
tar xf roundcubemail.tar.gz -C /roundcubemail --strip-components=1 --no-same-owner && \
rm -rf *.tar.gz *.asc;
RUN apt-get install -y --no-install-recommends \
php-exif php-gd php-intl php-ldap php-mysql php-zip php-pspell php-mbstring php-xml php-curl php-imagick php-sqlite3 \
git mariadb-client
WORKDIR /roundcubemail
# Plugins
RUN git clone https://github.com/johndoh/roundcube-contextmenu.git plugins/contextmenu
RUN curl -s https://getcomposer.org/installer | php
COPY ./conf/composer.json composer.json
RUN php composer.phar config --no-plugins allow-plugins.roundcube/plugin-installer true
RUN php composer.phar install
## Config Plugins
## ManageSieve
COPY ./conf/config.php.inc.managesieve plugins/managesieve/config.inc.php
## Customize Logo Sindominio
COPY ./conf/logo.svg skins/elastic/images/logo.svg
COPY entrypoint.sh /entrypoint.sh
COPY init-database.sh /init-database.sh
ENTRYPOINT ["/bin/sh","/entrypoint.sh"]
CMD ["/usr/sbin/php-fpm","--nodaemonize"]
# expose these volumes
VOLUME /roundcubemail