Accepting request 1183461 from devel:BCI:Tumbleweed

🤖: sync package with devel:BCI:Tumbleweed from OBS

OBS-URL: https://build.opensuse.org/request/show/1183461
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micro-image?expand=0&rev=18
This commit is contained in:
Ana Guerrero 2024-06-27 14:02:49 +00:00 committed by Git OBS Bridge
commit b204699cdf
2 changed files with 36 additions and 7 deletions

View File

@ -2,13 +2,37 @@
![Redistributable](https://img.shields.io/badge/Redistributable-Yes-green)
## Description
This image is similar to Minimal but without the RPM package manager.
The primary use case for the image is deploying static binaries produced
externally or during multi-stage builds. As there is no straightforward
way to install additional dependencies inside the container image,
we recommend deploying a project using the Minimal image only
when the final build artifact bundles all dependencies and has no
external runtime requirements (like Python or Ruby).
The `bci-micro` image includes the RPM database, but not the RPM package
manager. This means that the image is smaller than `bci-minimal`. The primary
use case for the image is deploying static binaries produced externally or
during multi-stage builds.
## Usage
As there is no straightforward way to install additional
dependencies inside the container image, we recommend deploying a project
using the `bci-micro` image only when the final build artifact bundles all
dependencies and needs no further installation of packages.
Example using a Go application:
```Dockerfile
FROM registry.suse.com/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.suse.com/bci/bci-micro:latest
COPY --from=build /go/bin/helloworld /usr/local/bin/helloworld
CMD ["/usr/local/bin/helloworld"]
```
## Licensing

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 26 13:56:49 UTC 2024 - Dirk Mueller <dmueller@suse.com>
- README fixes
-------------------------------------------------------------------
Mon Jun 10 15:11:25 UTC 2024 - Dirk Mueller <dmueller@suse.com>