How to run multiple environments at once? #98
-
For the formatting of my projects, I use Prettier with the prettier-plugin-blade plugin.
Right now, this is returned:
This is expected, as we only run the Node environment. I thought it might be possible with What's the best approach to enable PHP? I feel that somehow I could combine both environments in one command, or do i need to create a new Dockerfile that combines both in one file? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That's a bummer it requires both PHP and Node, but I get why they are doing that. In this case, the best way to move forward would be installing node within the PHP container. Don't do this for your production image though (I assume you have a build step for compiling assets). Instead, you can use Multi-stage builds to do it for development only: https://docs.docker.com/build/building/multi-stage/ Hope this helps! |
Beta Was this translation helpful? Give feedback.
That's a bummer it requires both PHP and Node, but I get why they are doing that.
In this case, the best way to move forward would be installing node within the PHP container. Don't do this for your production image though (I assume you have a build step for compiling assets).
Instead, you can use Multi-stage builds to do it for development only: https://docs.docker.com/build/building/multi-stage/
Hope this helps!