php-worker: add laradock user (#1928)
This commit is contained in:
		
				
					committed by
					
						
						Shao Yu-Lung (Allen)
					
				
			
			
				
	
			
			
			
						parent
						
							7c4f6dd7a9
						
					
				
				
					commit
					03ff791e17
				
			@@ -25,6 +25,15 @@ RUN apk --update add wget \
 | 
			
		||||
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
 | 
			
		||||
RUN pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached
 | 
			
		||||
 | 
			
		||||
# Add a non-root user:
 | 
			
		||||
ARG PUID=1000
 | 
			
		||||
ENV PUID ${PUID}
 | 
			
		||||
ARG PGID=1000
 | 
			
		||||
ENV PGID ${PGID}
 | 
			
		||||
 | 
			
		||||
RUN addgroup -g ${PGID} laradock && \
 | 
			
		||||
    adduser -D -G laradock -u ${PUID} laradock
 | 
			
		||||
 | 
			
		||||
#Install SOAP package:
 | 
			
		||||
ARG INSTALL_SOAP=false
 | 
			
		||||
RUN if [ ${INSTALL_SOAP} = true ]; then \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user