Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devcontainers-contrib/nanolayer
https://github.com/devcontainers-contrib/nanolayer
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/devcontainers-contrib/nanolayer
- Owner: devcontainers-contrib
- Created: 2022-12-23T21:11:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-17T20:00:16.000Z (5 months ago)
- Last Synced: 2024-05-29T19:29:03.146Z (4 months ago)
- Language: Python
- Size: 81.6 MB
- Stars: 34
- Watchers: 1
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:```shell
nanolayer install gh-release cli/cli gh
```### Example
```dockerfile
FROM python:3.10RUN apt-get -y update && apt-get install -y htop
```layer size: **22MB**
```dockerfile
FROM python:3.10RUN 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**