Caching PNPM Modules in Docker Builds in GitHub Actions

This page summarizes the projects mentioned and recommended in the original post on dev.to

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. gha-docker-npm-caching-example

    Example of caching NPM modules within Docker with GitHub Actions

    You can use reproducible-containers/buildkit-cache-dance to reuse cached files in your Docker build and an action like tespkg/actions-cache or actions/cache to persist the cache externally. See GitHub repo for an example setup.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. buildkit

    concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit

    The currently proposed solution is to allow Docker to bind the cache directory in the build to a directory on the host. This way the cache could be persisted externally. However, this issue has been opened for almost 4 years (May 27, 2020) with no clear answer as to whether it'll be implemented any time soon.

  4. buildkit-cache-dance

    Save `RUN --mount=type=cache` caches on GitHub Actions ( Forked from https://github.com/overmindtech/buildkit-cache-dance )

    This is where the reproducible-containers/buildkit-cache-dance GitHub Action comes to the rescue! This Action is able to extract the files from the Docker build so they can be persisted on an external storage like S3 and is the approach recommended on the official Docker documentation.

  5. actions-cache

    Cache to S3 storage with official actions/cache@v2 fallback

    tespkg/actions-cache: Cache to S3 storage with official actions/cache@v2 fallback

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Docker BuildKit: Accelerating Docker Builds with Next-Generation Technology

    1 project | dev.to | 17 Mar 2025
  • 1MinDocker #8 - Advanced concepts for buildx

    2 projects | dev.to | 1 Dec 2024
  • ARM vs x86 em Docker

    1 project | dev.to | 5 Apr 2024
  • Show HN: Dockerfile Explorer

    1 project | news.ycombinator.com | 28 Nov 2023
  • Frequent Docker BuildKit cache misses with w/ multi-stage and docker-container

    1 project | /r/docker | 11 Jul 2023

Did you know that TypeScript is
the 1st most popular programming language
based on number of references?