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.
Click below to sign up and get $100 of credit to try our products over 60 days!