Skip to content

Statically compiled zip as a Docker image FROM scratch, leaner than venison.

License

Notifications You must be signed in to change notification settings

opsgang/docker_zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zip-only Docker image

Statically compiled zip as a Docker image "FROM scratch", leaner than venison.

Problem Statement

Often all you need is to zip up something. For example, an AWS Lambda function. In private environments, private registered can be all tangled up if you want to zip and upload or deploy in the same step.

Here comes a public image, which provides a statically compiled "zip" and friends in 🥁 640k. Sounds like a Microsoft wet dream in the '80s.

Available Tools

The Docker image contains only the following binaries:

  • zip
  • zipcloak
  • zipnote
  • zipsplit

Usage

docker run --rm -it -v $(pwd):/workspace:z -w /workspace opsgang/zip -r9 function.zip

Testing

Built from Alpine and completely distroless. Use it with confidence. If you know a CVE scanner which eats distroless images, please let us know.

Links

About

Statically compiled zip as a Docker image FROM scratch, leaner than venison.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published