Skip to content

A Docker image based on debian:slim ideal for compiling binaries in multi-stage builds

Notifications You must be signed in to change notification settings

spritsail/debian-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Latest Version Git Commit Docker Pulls Docker Stars Build Status

Example usage

FROM spritsail/debian-builder as builder

ARG BUSYBOX_VER=1.27.1

# Download and build busybox from source
RUN curl -fL https://busybox.net/downloads/busybox-${BUSYBOX_VER}.tar.bz2 \
        | tar xj --strip-components=1 && \
    # Use default configuration
    make defconfig && \
    make -j "$(nproc)" && \
    ...

#~~~~~~~~~~~~~~~~

FROM scratch
COPY --from=builder /tmp/busybox /
CMD ["/busybox", "sh"]

About

A Docker image based on debian:slim ideal for compiling binaries in multi-stage builds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published