fix(docker): healthcheck (#175)
fixes healthcheck for $ALLOWED_HOSTS longer than 2 domains
This commit is contained in:
		
							parent
							
								
									04120323a6
								
							
						
					
					
						commit
						53bc690435
					
				@ -47,5 +47,5 @@ RUN python manage.py collectstatic --noinput && \
 | 
			
		||||
# Launch
 | 
			
		||||
USER appuser
 | 
			
		||||
EXPOSE 8080
 | 
			
		||||
HEALTHCHECK CMD bash -c 'wget -o /dev/null -O /dev/null --header "Host: ${ALLOWED_HOSTS%,*}" "http://127.0.0.1:$PORT/healthz/?format=json"'
 | 
			
		||||
HEALTHCHECK CMD bash -c 'wget -o /dev/null -O /dev/null --header "Host: ${ALLOWED_HOSTS%%,*}" "http://127.0.0.1:$PORT/healthz/?format=json"'
 | 
			
		||||
CMD [ "./entrypoint.sh" ]
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user