Skip to content

NilsIrl/dockerc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

01075b0 · Aug 9, 2024

History

33 Commits
Aug 9, 2024
Jun 22, 2024
Jun 8, 2024
Jul 22, 2024
Aug 9, 2024
Mar 10, 2024
Jul 21, 2024
Jul 22, 2024
Aug 9, 2024
Mar 10, 2024
Jul 21, 2024
Feb 20, 2024
Jun 9, 2024
Aug 9, 2024
Feb 20, 2024
Mar 6, 2024
Aug 7, 2024
Aug 9, 2024
Jun 9, 2024

Repository files navigation

dockerc - compile docker images to standalone portable binaries

No more Tweet

No more docker run, no more pip install, no more npm i, just give your users executables they can run!

Usage

Install dockerc from the latest release.

# Image from docker hub
$ dockerc --image docker://oven/bun --output bun
# Image in local docker daemon storage
$ zig-out/bin/dockerc --image docker-daemon:mysherlock-image:latest --output sherlock_bin

The output binary can then be called as you would with usual binaries. You can also specify -e, and -v in the same way you would when using docker run. Networked services running inside the container can be accessed directly without having to specify -p.

Skopeo is used for loading images, for other locations refer to its documentation.

Build from source

$ zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-linux-musl

Features