After some digging I found the actual culprit to be the grep -c.. which made the script exit and therefore the entire container.
I also added cleaning the Apache PID file as seen in many popular Docker images using Apache
The other problem was the APP_KEY being regenerated when rebuilding the image which makes reusing the same external DB impossible.
As there are different scenarios where this is not a problem, I made this optional and commented it out by default.
fixes #13 #11
After some digging I found the actual culprit to be the grep -c.. which made the script exit and therefore the entire container.
I also added cleaning the Apache PID file as seen in many popular Docker images using Apache
The other problem was the APP_KEY being regenerated when rebuilding the image which makes reusing the same external DB impossible. As there are different scenarios where this is not a problem, I made this optional and commented it out by default.