Skip to content

Feature Request: use of ccache for build in Dockerfiles #21225

@t-hofmann

Description

@t-hofmann

Prerequisites

  • I am running the latest code. Mention the version if possible as well.
  • I carefully followed the README.md.
  • I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • I reviewed the Discussions, and have a new and useful enhancement to share.

Feature Description

In order to speedup repeated builds, add ccache to the Dockerfiles.

Please note: I am not familiar with the project's build environment/needs.

Motivation

speedup repeated builds

Possible Implementation

An approach could involve the following changes in the builder-stage:

  • install ccache
  • use a mount in the build step for caching like:
RUN --mount=type=cache,target=/root/.cache/ccache ...

add ccache directory to .gitignore

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions