Hi everyone, I'm looking for tips from anyone more familiar with Docker on how to speed-up deployment. It currently takes 6 to 7 minutes to deploy on Google Cloud using Cloud Build and Cloud Run with a Dockerfile more or less exactly like the recommended file from the docs (https://payloadcms.com/docs/production/deployment#docker)
- Are there ways to add a build cache? It seems like the majority of the time comes from running yarn install every time, even if the dependencies didn't change
- Is it necessary to do yarn install in both the build and deploy steps? Could the original dependenecies be included in the Docker image?
- Any other tips and what a realistic goal for deployment speed might be