[PHP] Add git to docker image
This commit is contained in:
		
							parent
							
								
									e6aac6339f
								
							
						
					
					
						commit
						ee6642be89
					
				| @ -1,11 +1,15 @@ | |||||||
| from php:7.4.25-apache | from php:7.4.25-apache | ||||||
| 
 | 
 | ||||||
| RUN a2enmod remoteip rewrite | RUN apt-get update && apt-get install -y \ | ||||||
| RUN echo "RemoteIPHeader X-Forwarded-For" > /etc/apache2/conf-available/remoteip.conf | 	git \ | ||||||
| RUN a2enconf remoteip | 	&& rm -rf /var/lib/apt/lists/* | ||||||
| RUN sed -i -r 's/^ServerTokens .*/ServerTokens Prod/g' /etc/apache2/conf-available/security.conf | 
 | ||||||
| RUN sed -i -r 's/^ServerSignature .*/ServerSignature Off/g' /etc/apache2/conf-available/security.conf | RUN a2enmod remoteip rewrite \ | ||||||
| RUN sed -i -E 's/^LogFormat "%h(.*)/LogFormat "%a\1/g' /etc/apache2/apache2.conf | 	&& echo "RemoteIPHeader X-Forwarded-For" > /etc/apache2/conf-available/remoteip.conf \ | ||||||
| RUN echo "expose_php = Off" > /usr/local/etc/php/conf.d/php_version.ini | 	&& a2enconf remoteip \ | ||||||
|  | 	&& sed -i -r 's/^ServerTokens .*/ServerTokens Prod/g' /etc/apache2/conf-available/security.conf \ | ||||||
|  | 	&& sed -i -r 's/^ServerSignature .*/ServerSignature Off/g' /etc/apache2/conf-available/security.conf \ | ||||||
|  | 	&& sed -i -E 's/^LogFormat "%h(.*)/LogFormat "%a\1/g' /etc/apache2/apache2.conf \ | ||||||
|  | 	&& echo "expose_php = Off" > /usr/local/etc/php/conf.d/php_version.ini | ||||||
| 
 | 
 | ||||||
| CMD ["apache2-foreground"] | CMD ["apache2-foreground"] | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user