build deps on different platform

Hi all,

I have a phoenix umbrella app that I build a docker container for using alpine and deploy via github actions. I was wondering if anyone knew a way I could build dependencies outside of the container so I can cache them?

Thanks!