2020-08-18 19:14:51 +00:00
|
|
|
FROM php:7.4-apache
|
2018-10-24 20:45:58 +00:00
|
|
|
LABEL maintainer="Torben Nehmer <torben@nehmer.net>"
|
|
|
|
|
|
|
|
RUN set -ex; \
|
|
|
|
apt-get update; \
|
|
|
|
\
|
|
|
|
savedAptMark="$(apt-mark showmanual)"; \
|
|
|
|
\
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libicu-dev \
|
|
|
|
libjpeg62-turbo-dev \
|
|
|
|
libldap2-dev \
|
|
|
|
libpng-dev \
|
|
|
|
libpq-dev \
|
|
|
|
libsqlite3-dev \
|
2020-02-20 18:07:04 +00:00
|
|
|
libzip-dev \
|
2018-10-24 20:45:58 +00:00
|
|
|
# ISPConfig requirement
|
|
|
|
libxml2-dev \
|
|
|
|
; \
|
|
|
|
\
|
|
|
|
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
|
2020-08-18 19:14:51 +00:00
|
|
|
docker-php-ext-configure gd ; \
|
2018-10-24 20:45:58 +00:00
|
|
|
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
|
|
|
|
docker-php-ext-install \
|
|
|
|
exif \
|
|
|
|
gd \
|
|
|
|
intl \
|
|
|
|
ldap \
|
|
|
|
pdo_mysql \
|
|
|
|
pdo_pgsql \
|
|
|
|
pdo_sqlite \
|
|
|
|
zip \
|
|
|
|
# ISPConfig requirement
|
|
|
|
soap \
|
|
|
|
; \
|
|
|
|
\
|
|
|
|
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
|
|
|
apt-mark auto '.*' > /dev/null; \
|
|
|
|
apt-mark manual $savedAptMark; \
|
|
|
|
ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so \
|
|
|
|
| awk '/=>/ { print $3 }' \
|
|
|
|
| sort -u \
|
|
|
|
| xargs -r dpkg-query -S \
|
|
|
|
| cut -d: -f1 \
|
|
|
|
| sort -u \
|
|
|
|
| xargs -rt apt-mark manual; \
|
|
|
|
\
|
|
|
|
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
2018-11-08 21:12:44 +00:00
|
|
|
apt-get clean ;\
|
2018-10-24 20:45:58 +00:00
|
|
|
rm -rf /var/lib/apt/lists/* ;\
|
|
|
|
\
|
|
|
|
# enable mod_rewrite
|
|
|
|
a2enmod rewrite
|
|
|
|
|
|
|
|
# expose these volumes
|
|
|
|
VOLUME /var/roundcube/config
|
|
|
|
|
|
|
|
# Define Roundcubemail version
|
2021-02-20 17:17:40 +00:00
|
|
|
ENV ROUNDCUBEMAIL_VERSION 1.4.11
|
2018-10-24 20:45:58 +00:00
|
|
|
|
2018-10-25 20:10:01 +00:00
|
|
|
# Set the entry point
|
2018-10-24 20:45:58 +00:00
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
CMD ["apache2-foreground"]
|
2018-10-25 20:10:01 +00:00
|
|
|
|
|
|
|
# Finally, publish the rootfs file into the container
|
|
|
|
# This is done as last step to make docker build caching more efficient.
|
|
|
|
ADD rootfs.tar.gz /
|