Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16752

Reduce attack surface and size for Docker image

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 8.11
    • 9.3
    • Docker

    Description

      Hi,

      I have created this issue here as a replacement for the pull request on GitHub: https://github.com/apache/solr-docker/pull/15.

      To summarize, the Dockerfiles should contain the --no-install-recommends option wherever there is an apt-get install command. This should help improve the security of the container and reduce the risk of potential attacks.

      In detail, the --no-install-recommends option helps remove unnecessary apt packages that are not needed for the container's functionality. This change can not only trim your image size but also reduce the attack surface.

      I hope you find this information useful. Please let me know if you have any concerns.

      Thank you.

      Attachments

        Activity

          People

            houston Houston Putman
            bqcuong Cuong Bui
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 50m
                1h 50m