`COPY --chmod` reduced the size of my container image by 35%

This page summarizes the projects mentioned and recommended in the original post on /r/programming

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
  • ko

    Build and deploy Go applications

    If you're using Go, I recommend https://github.com/google/ko (shameless plug), or for Java, use Jib.

  • 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
  • go-containerregistry

    Go library and CLIs for working with container registries

    There's also (another shameless plug) crane append which simply adds the contents of a tar to an existing base image directly in the registry: https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_append.md

  • Moby

    The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems

    COPY --exclude. https://github.com/moby/moby/issues/15771

  • docker-f1ux

    Images for building older Forum One themes

    With Nix you have to look up obscure sites like this and look for specific hashes and pray that the version you need exists (or package it and distribute it yourself). Approaches like this are not that inviting.

  • Lean and Mean Docker containers

    Slim(toolkit): Don't change anything in your container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)

    Or you can save your time micromanaging your Dockerfile and just use docker-slim.

  • buildkit

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

    Similarly, Dockerfile with buildkit support a 'COPY --chmod' directive now. https://github.com/moby/buildkit/pull/1492. Again not quite everything you're looking for, but addresses the OP's issue.

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

  • Golang REST API boilerplate

    12 projects | dev.to | 4 Jun 2024
  • Launch HN: EdgeBit (YC W23) – live software vulnerability analysis

    3 projects | news.ycombinator.com | 1 Mar 2023
  • Building a software bill of materials (SBOM) using open source tools

    1 project | dev.to | 1 Feb 2023
  • 'cargo auditable' can now be used as a drop-in replacement for Cargo

    5 projects | /r/rust | 9 Dec 2022
  • Keeping up with dependencies like a boss

    2 projects | /r/programming | 1 Nov 2022

Did you konow that Go is
the 4th most popular programming language
based on number of metions?