Skip to content

ohara-iri/nanolayer

 
 

Repository files navigation

Nanolayer CLI

nanolayer helps keep container layers as small as possible.

It does so by automatically deleting any installation leftovers (such as apt-get update lists, ppas, etc)

Installation

pipx install nanolayer

GH Release installation:

Usage:

nanolayer install gh-release cli/cli gh 

Example

FROM python:3.10

RUN apt-get -y update && apt-get install -y htop 

layer size: 22MB

FROM python:3.10

RUN curl -sfL https://github.com/devcontainers-contrib/nanolayer/releases/download/v0.4.0/nanolayer-x86_64-unknown-linux-gnu.tgz | tar fxvz - -C / && \
    chmod 755 /tmp/nanolayer && ls /tmp && \
    /nanolayer install apt-get htop && \
    rm /nanolayer

Layer size: 1.6MB

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.2%
  • Starlark 11.6%
  • Shell 0.2%