Skip to content

Let play with Ubuntu's Chisel tool for minimal Docker images

License

Notifications You must be signed in to change notification settings

tgagor/docker-chisel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Chisel

Docker Chisel is a tool for managing and optimizing Docker images and containers. It generates Docker images with Chisel and Chisel releases for specific Ubuntu versions, which can be used as a base for the builder pattern.

Usage

To use this base image with Chisel:

FROM tgagor/chisel:24.04 AS builder
ARG UBUNTU_RELEASE=24.04

RUN chisel cut --release ubuntu-$UBUNTU_RELEASE --root /rootfs \
        base-files_base \
        base-files_release-info \
        dash_bins

# Add a tool you need
ADD https://github.com/the-tool/the-tool/releases/download/v1.2.3/the-tool-linux-amd64 /rootfs/usr/local/bin/the-tool
RUN chmod +x /rootfs/usr/local/bin/the-tool

FROM scratch
COPY --from=builder /rootfs /
RUN the-tool -v

Images

You can fetch docker image from:

About

Let play with Ubuntu's Chisel tool for minimal Docker images

Resources

License

Stars

Watchers

Forks

Packages

No packages published