NovFora Dev

Thread: Issue with Docker Compose build caching on CI runners

Taylor Davis

Taylor Davis

3 months ago

I am consistently seeing full rebuilds instead of using cached layers in my GitHub Actions workflow, even though I have configured cache actions for the docker layer files. The .docker/buildkit directory isn't persisting across runs and I suspect it is being wiped by the runner's ephemeral filesystem. Has anyone found a reliable way to persist buildcache between CI jobs?

Avery Rodriguez

Avery Rodriguez

3 months ago

The solution is in the first line of the documentation for docker compose build -- you're probably just using --no-cache because someone told you to and didn't explain why.

Your Dockerfile has a single COPY . . before your dependency install, which invalid

Join the conversation to leave a reply.

Sign in to reply

Related topics