fixed php-fpm install phalcon ext bug (#1811)
* add phalcon ext * fixed phalcon install * update index.md * php-worker install phalcon ext
This commit is contained in:
		
				
					committed by
					
						
						Shao Yu-Lung (Allen)
					
				
			
			
				
	
			
			
			
						parent
						
							03ff791e17
						
					
				
				
					commit
					04f071555c
				
			@@ -16,6 +16,7 @@ RUN apk --update add wget \
 | 
			
		||||
  libmemcached-dev \
 | 
			
		||||
  libmcrypt-dev \
 | 
			
		||||
  libxml2-dev \
 | 
			
		||||
  pcre-dev \
 | 
			
		||||
  zlib-dev \
 | 
			
		||||
  autoconf \
 | 
			
		||||
  cyrus-sasl-dev \
 | 
			
		||||
@@ -65,6 +66,20 @@ RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then \
 | 
			
		||||
RUN rm /var/cache/apk/* \
 | 
			
		||||
    && mkdir -p /var/www
 | 
			
		||||
 | 
			
		||||
# Install Phalcon ext
 | 
			
		||||
ARG INSTALL_PHALCON=false
 | 
			
		||||
ARG PHALCON_VERSION
 | 
			
		||||
ENV PHALCON_VERSION ${PHALCON_VERSION}
 | 
			
		||||
 | 
			
		||||
RUN if [ $INSTALL_PHALCON = true ]; then \
 | 
			
		||||
    apk --update add unzip gcc make re2c bash\
 | 
			
		||||
    && curl -L -o /tmp/cphalcon.zip https://github.com/phalcon/cphalcon/archive/v${PHALCON_VERSION}.zip \
 | 
			
		||||
    && unzip -d /tmp/ /tmp/cphalcon.zip \
 | 
			
		||||
    && cd /tmp/cphalcon-${PHALCON_VERSION}/build \
 | 
			
		||||
    && ./install \
 | 
			
		||||
    && rm -rf /tmp/cphalcon* \
 | 
			
		||||
;fi
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
#--------------------------------------------------------------------------
 | 
			
		||||
# Optional Supervisord Configuration
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user