mr-smithers-excellent / docker-build-push

Docker Build & Push GitHub Action
MIT License
287 stars 61 forks source link

Is it possible to cache node_modules that were installed in Dockerfile? #205

Closed sandrooco closed 10 months ago

sandrooco commented 11 months ago

I need to install sharp inside the Dockerfile to make Next.js image optimization run properly (see docs). sharp is quite large and significantly increases build time. Is it possible to somehow cache this part?

mr-smithers-excellent commented 11 months ago

It's natively possible using the official Docker build-push-action via buildx, but not yet possible using this action.