🤖: sync package with devel:BCI:Tumbleweed from OBS OBS-URL: https://build.opensuse.org/request/show/1353235 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nano-image?expand=0&rev=3
openSUSE Tumbleweed BCI Nano: Suitable for deploying static binaries
Description
The bci-nano image is providing timezone and TLS trusted CA certificates,
but no shell or glibc. This means that the image is smaller than bci-micro.
The primary use case for the image is deploying static binaries produced
externally or during multi-stage builds which do not require any shell
environment.
Usage
As there is no straightforward way to install additional
dependencies inside the container image, we recommend deploying a project
using the bci-nano image only when the final build artifact bundles all
dependencies and needs no further installation of packages.
Example using a Go application:
FROM registry.opensuse.org/opensuse/bci/golang:stable as build
WORKDIR /app
RUN go install github.com/go-training/helloworld@latest
# Create an image to bundle the app
FROM registry.opensuse.org/opensuse/bci/bci-nano:latest
COPY --from=build /go/bin/helloworld /usr/local/bin/helloworld
CMD ["/usr/local/bin/helloworld"]
Licensing
SPDX-License-Identifier: MIT
This documentation and the build recipe are licensed as MIT. The container itself contains various software components under various open source licenses listed in the associated Software Bill of Materials (SBOM).
This image is based on openSUSE Tumbleweed.