FROM roundcube/roundcubemail:1.4.2-apache RUN ln -s /bin/true /usr/local/bin/apache2-fake ADD https://getcomposer.org/installer /tmp/composer-installer.php RUN php /tmp/composer-installer.php --install-dir=/usr/local/bin/ && rm /tmp/composer-installer.php RUN cd /usr/src/roundcubemail/ && composer.phar require sblaisot/automatic_addressbook 0.4.3 RUN cd /usr/src/roundcubemail/ && composer.phar require roundcube/authres_status 0.5.2 RUN cd /usr/src/roundcubemail/ && composer.phar require kitist/html5_notifier 0.6.3 COPY ./config/ /usr/src/roundcubemail/ COPY ./config/config/ /var/roundcube/config/ COPY ./vars-vars /etc/vars-vars COPY ./vars-files /etc/vars-files COPY ./run.sh /run.sh ENTRYPOINT ["/run.sh"] CMD ["apache2-foreground"]