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.
 

30 lines
1.2 KiB

FROM registry.sindominio.net/php-fpm
ENV SHA256 "2fdc7b1663e5e99706bff34093aa4731d4bf22a58cb555a2520ed1bde78d012c"
ENV ROUNDCUBEMAIL_VERSION 1.5.0
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
WORKDIR /roundcubemail
RUN mkdir db
# expose these volumes
VOLUME /roundcubemail