Skip to content

How to run multiple environments at once? #98

Answered by jaydrogers
Maarten-Dekker asked this question in Q&A
Discussion options

You must be logged in to vote

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!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jaydrogers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants