Update build pipeline to 1.6.3
This commit is contained in:
		
							
								
								
									
										50
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										50
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
FROM php:7.4-apache
 | 
			
		||||
FROM php:8.1-apache
 | 
			
		||||
LABEL maintainer="Torben Nehmer <torben@nehmer.net>"
 | 
			
		||||
 | 
			
		||||
RUN set -ex; \
 | 
			
		||||
@@ -11,16 +11,20 @@ RUN set -ex; \
 | 
			
		||||
		libicu-dev \
 | 
			
		||||
		libjpeg62-turbo-dev \
 | 
			
		||||
		libldap2-dev \
 | 
			
		||||
        libmagickwand-dev \
 | 
			
		||||
		libpng-dev \
 | 
			
		||||
		libpq-dev \
 | 
			
		||||
		libsqlite3-dev \
 | 
			
		||||
		libzip-dev \
 | 
			
		||||
        libpspell-dev \
 | 
			
		||||
        libonig-dev \
 | 
			
		||||
        libldap-common \
 | 
			
		||||
		# ISPConfig requirement
 | 
			
		||||
		libxml2-dev \
 | 
			
		||||
	; \
 | 
			
		||||
	\
 | 
			
		||||
	debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
 | 
			
		||||
	docker-php-ext-configure gd ; \
 | 
			
		||||
	docker-php-ext-configure gd --with-jpeg --with-freetype ; \
 | 
			
		||||
	docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
 | 
			
		||||
	docker-php-ext-install \
 | 
			
		||||
		exif \
 | 
			
		||||
@@ -31,15 +35,19 @@ RUN set -ex; \
 | 
			
		||||
		pdo_pgsql \
 | 
			
		||||
		pdo_sqlite \
 | 
			
		||||
		zip \
 | 
			
		||||
        pspell \
 | 
			
		||||
		# ISPConfig requirement
 | 
			
		||||
		soap \
 | 
			
		||||
	; \
 | 
			
		||||
    pecl install imagick redis; \
 | 
			
		||||
    docker-php-ext-enable imagick opcache redis; \
 | 
			
		||||
	\
 | 
			
		||||
	# 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 }' \
 | 
			
		||||
    extdir="$(php -r 'echo ini_get("extension_dir");')"; \
 | 
			
		||||
    ldd "$extdir"/*.so \
 | 
			
		||||
		| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' \
 | 
			
		||||
		| sort -u \
 | 
			
		||||
		| xargs -r dpkg-query -S \
 | 
			
		||||
		| cut -d: -f1 \
 | 
			
		||||
@@ -48,16 +56,40 @@ RUN set -ex; \
 | 
			
		||||
	\
 | 
			
		||||
	apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
 | 
			
		||||
	apt-get clean ;\
 | 
			
		||||
	rm -rf /var/lib/apt/lists/* ;\
 | 
			
		||||
	\
 | 
			
		||||
	# enable mod_rewrite
 | 
			
		||||
	a2enmod rewrite 
 | 
			
		||||
    ldd "$extdir"/*.so | grep -qzv "=> not found" || (echo "Sanity check failed: missing libraries:"; ldd "$extdir"/*.so | grep " => not found"; exit 1); \
 | 
			
		||||
    ldd "$extdir"/*.so | grep -q "libzip.so.* => .*/libzip.so.*" || (echo "Sanity check failed: libzip.so is not referenced"; ldd "$extdir"/*.so; exit 1); \
 | 
			
		||||
    err="$(php --version 3>&1 1>&2 2>&3)"; \
 | 
			
		||||
    [ -z "$err" ] || (echo "Sanity check failed: php returned errors; $err"; exit 1;);
 | 
			
		||||
 | 
			
		||||
# installto.sh dependencies
 | 
			
		||||
RUN set -ex; \
 | 
			
		||||
    \
 | 
			
		||||
    apt-get update; \
 | 
			
		||||
    apt-get install -y --no-install-recommends \
 | 
			
		||||
            aspell \
 | 
			
		||||
            aspell-en \
 | 
			
		||||
            aspell-de \
 | 
			
		||||
            aspell-fr \
 | 
			
		||||
            rsync \
 | 
			
		||||
            unzip \
 | 
			
		||||
            locales \
 | 
			
		||||
    ; \
 | 
			
		||||
    \
 | 
			
		||||
    echo "de_DE.UTF-8 UTF-8" > /etc/locale.gen ; \
 | 
			
		||||
    /usr/sbin/locale-gen ; \
 | 
			
		||||
    rm -rf /var/lib/apt/lists/* ; \
 | 
			
		||||
    mkdir -p /usr/src/roundcubemail/logs ; \
 | 
			
		||||
    chown -R www-data:www-data /usr/src/roundcubemail/logs ;
 | 
			
		||||
 | 
			
		||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
 | 
			
		||||
 | 
			
		||||
RUN a2enmod rewrite
 | 
			
		||||
 | 
			
		||||
# expose these volumes
 | 
			
		||||
VOLUME /var/roundcube/config
 | 
			
		||||
 | 
			
		||||
# Define Roundcubemail version
 | 
			
		||||
ENV ROUNDCUBEMAIL_VERSION 1.4.13
 | 
			
		||||
ENV ROUNDCUBEMAIL_VERSION 1.6.3
 | 
			
		||||
 | 
			
		||||
# Set the entry point
 | 
			
		||||
ENTRYPOINT ["/docker-entrypoint.sh"]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user