add zip extension support for PHP in php-worker (#1894)
This commit is contained in:
		
				
					committed by
					
						
						Shao Yu-Lung (Allen)
					
				
			
			
				
	
			
			
			
						parent
						
							2689638d7d
						
					
				
				
					commit
					d8c36ab860
				
			@@ -44,6 +44,15 @@ RUN if [ ${INSTALL_PGSQL} = true ]; then \
 | 
			
		||||
        && docker-php-ext-install pdo_pgsql \
 | 
			
		||||
;fi
 | 
			
		||||
 | 
			
		||||
# Install ZipArchive:
 | 
			
		||||
ARG INSTALL_ZIP_ARCHIVE=false
 | 
			
		||||
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
 | 
			
		||||
    apk --update add libzip-dev && \
 | 
			
		||||
    docker-php-ext-configure zip --with-libzip && \
 | 
			
		||||
    # Install the zip extension
 | 
			
		||||
    docker-php-ext-install zip \
 | 
			
		||||
;fi
 | 
			
		||||
 | 
			
		||||
RUN rm /var/cache/apk/* \
 | 
			
		||||
    && mkdir -p /var/www
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user