1. Images & Charts
  2. buildpack-deps
buildpack-deps

buildpack-deps

Dev
Updated 10 hours ago

Buildpack-Deps Overview

Secure your stack with a hardened Buildpack-Deps image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.


Buildpack-Deps provides the compilers, development headers, and source-control clients (git, mercurial, subversion) needed to build software from source, without tying that toolchain to a single language runtime. It's useful for building a monorepo that combines several language ecosystems, where a single-language base image isn't enough on its own.


Buildpack-Deps is used for production deployments as the build stage in a multi-stage Dockerfile, so compilers and development headers needed to build the application don't ship in the final container. Learn how it's done


Try It Out

To try the Minimus Buildpack-Deps image, we will compile and run a simple C program to confirm the build toolchain works.

In your project directory, save the following code to hello.c:

#include <stdio.h>

int main(void) {
    printf("Hello from Buildpack-Deps!\n");
    return 0;
}

Compile and run it using the image:

docker run --rm \
  -v "$PWD":/src \
  -w /src \
  reg.mini.dev/buildpack-deps \
  sh -c "gcc -o hello hello.c && ./hello"

You should see:

Hello from Buildpack-Deps!

This confirms the image includes a working C compiler and standard library headers.

Check included tools

Buildpack-Deps also bundles curl and source-control clients like git, useful when a build step needs to fetch dependencies directly instead of through a package manager. Check that both are present:

docker run --rm reg.mini.dev/buildpack-deps sh -c "git --version && curl --version"

Expect newer version numbers than the public buildpack-deps image reports since Minimus rebuilds images to include the latest available package versions rather than pinning to what upstream last published.


Technical Considerations

The Buildpack-Deps image provided by Minimus is a slim, security-hardened alternative to the public image from Docker Hub. The images are largely interchangeable, with a few differences as noted below.

Buildpack-Deps built by Minimus:

  1. Runs as root to support required functions in alignment with the public image.
  2. Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.

The Payoff

A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.


Terms & Info

Trademark

This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.

Disclaimer

Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.