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.
# 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`
This work is inspired by ko
.