Add php/Dockerfile-8.1
This commit is contained in:
		
							parent
							
								
									10dddc7afe
								
							
						
					
					
						commit
						c3444a68b7
					
				
					 1 changed files with 32 additions and 0 deletions
				
			
		
							
								
								
									
										32
									
								
								php/Dockerfile-8.1
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								php/Dockerfile-8.1
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,32 @@
 | 
				
			||||||
 | 
					FROM ubuntu:20.04
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ENV DEBIAN_FRONTEND=noninteractive
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN apt-get update && apt-get install -y software-properties-common
 | 
				
			||||||
 | 
					RUN add-apt-repository ppa:ondrej/php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN apt-get update && apt-get install -y \
 | 
				
			||||||
 | 
					    php8.1-fpm \
 | 
				
			||||||
 | 
					    php8.1-mysql \
 | 
				
			||||||
 | 
					    php8.1-xml \
 | 
				
			||||||
 | 
					    php8.1-soap \
 | 
				
			||||||
 | 
					    php8.1-mbstring \
 | 
				
			||||||
 | 
					    php8.1-curl \
 | 
				
			||||||
 | 
					    php8.1-dev \
 | 
				
			||||||
 | 
					    git \
 | 
				
			||||||
 | 
					    wget
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Install php-spy
 | 
				
			||||||
 | 
					RUN git clone https://github.com/adsr/phpspy.git \
 | 
				
			||||||
 | 
					    && cd phpspy \
 | 
				
			||||||
 | 
					    && make \
 | 
				
			||||||
 | 
					    && mv phpspy /usr/local/bin \
 | 
				
			||||||
 | 
					    && cd .. \
 | 
				
			||||||
 | 
					    && rm -rf phpspy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN sed -i 's/;clear_env = no/clear_env = no/' /etc/php/8.1/fpm/pool.d/www.conf
 | 
				
			||||||
 | 
					RUN sed -i 's/listen = \/run\/php\/php8.1-fpm.sock/listen = 9081/' /etc/php/8.1/fpm/pool.d/www.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					EXPOSE 9081
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CMD ["php-fpm8.1", "-F"]
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue