Implement signal handling
This commit is contained in:
		
							parent
							
								
									aa9685aa27
								
							
						
					
					
						commit
						fd9d45668b
					
				
					 5 changed files with 25 additions and 15 deletions
				
			
		|  | @ -11,9 +11,10 @@ RUN apt-get update \ | |||
|     nullmailer \ | ||||
|     php5-mysql \ | ||||
|     && apt-get clean \ | ||||
|     && rm -rf /var/lib/apt/lists/* | ||||
| 
 | ||||
| STOPSIGNAL SIGWINCH | ||||
|     && rm -rf /var/lib/apt/lists/* \ | ||||
|     && curl --silent --location --output /usr/local/bin/dumb-init \ | ||||
|        https://github.com/Yelp/dumb-init/releases/download/v1.2.4/dumb-init_1.2.4_x86_64 \ | ||||
|     && chmod +x /usr/local/bin/dumb-init | ||||
| 
 | ||||
| COPY docker/apache-cats-foreground /usr/local/bin/ | ||||
| COPY testca/root/ca.crt.pem /usr/local/share/ca-certificates/testca_root.crt | ||||
|  | @ -33,10 +34,11 @@ RUN a2ensite cats.cacert.localhost ; \ | |||
|     a2enmod rewrite ; \ | ||||
|     a2enmod ssl ; \ | ||||
|     cd /usr/local/share/ca-certificates ; \ | ||||
|     curl -O http://www.cacert.org/certs/root_X0F.crt ; \ | ||||
|     curl -O http://www.cacert.org/certs/class3_X0E.crt ; \ | ||||
|     curl --silent --remote-name http://www.cacert.org/certs/root_X0F.crt ; \ | ||||
|     curl --silent --remote-name http://www.cacert.org/certs/class3_X0E.crt ; \ | ||||
|     update-ca-certificates | ||||
| 
 | ||||
| EXPOSE 443 | ||||
| 
 | ||||
| ENTRYPOINT ["/usr/local/bin/dumb-init", "--"] | ||||
| CMD ["/usr/local/bin/apache-cats-foreground"] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue