Do you have Docker locally? If so, does it show the same behaviour?
I just tried with our remote builder and it cached the layers. I don’t have the full Dockerfile or any code though. The first steps were all cached though.
Looking at the node:alpine image, it should work fine.
Unrelated, but I’d suggest using a base image other than alpine. Docker images based on alpine can sometimes cause DNS issues.
Just checked the alpine tag on docker hub and all the “latest” tags were updated 15 hours ago while the previous point release was 3 days ago. Try using a specific version tag and see if the cache is any better.
Fixed it! I was using the github action for deploying which I (incorrectly) assumed would use remote builders by default because there was no information about caching, etc so I thought it would be handled remotely