Question
How do I use the same image for multiple containers in App Platform
I am building a Laravel App, which runs great on the App Platform.
It has a service, two workers (schedule:work and queue:work) and a pre-deploy job (migrate).
They use the same code, env variables, etc., but it looks like they are building one after another, wasting tons of time.
How can I build one image (maybe as a pre-deploy job) and use it in the service, workers and pre-deploy job containers?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×