0
I climbed a container with Apache + PHP, however, I need to use the Laravel-mix, soon need the npm and nodejs. Everything works ok, however, at a certain point I saw that the container restarted, this can be related to my approach of putting everything together as below?
FROM php:7.1-apache
RUN apt-get update && a2enmod rewrite && apt-get install -y curl unzip git npm && curl -sL https://deb.nodesource.com/setup_6.x | bash - && apt-get install -y nodejs
...
Any recommendation in the context of the above scenario?
What is the log when it restarts? And the container shutdown status? Remember that when more than one process is running by default no one is sent SIGTERM to another, leaving the container not integrated.
– Bruno César
I didn’t get to observe the log. In the case of this image, how can I use a supervisor to allow the execution of apache and nodejs?
– Fábio Jânio
You have a very complete example using it here: https://docs.docker.com/engine/admin/multi-service_container/
– Bruno César