djcass44 / nib

Build and deploy Frontend applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nib: Easy Frontend Containers

nib is a simple, fast container image builder for frontend applications.

It's ideal for use cases where your project outputs static files that just need to be served (e.g., a React app).

nib builds images by effectively executing npm ci && npm run build on your local machine, and as such doesn't require docker to be installed, not does it require root permissions. This can make it a good fit for lightweight CI/CD use cases.

Install nib and get started!

Usage

# set the registry/repository that we want to push to
export NIB_DOCKER_REPO=registry.example.org/foo/bar
# set the OCI image that we will use as a base (this is the default)
export NIB_DEFAULT_BASE_IMAGE=ghcr.io/djcass44/nib/srv

# build the image
nib build . --tags v1.2.3

# the resulting image will be available at `registry.example.org/foo/bar:v1.2.3`

Acknowledgements

This work is inspired by ko.

About

Build and deploy Frontend applications

License:Apache License 2.0


Languages

Language:Go 99.2%Language:Makefile 0.8%