base-images/Containerfile
Colin Walters 6de35e0fc2 Rework build system further
- Move everything related to base/ into that directory, including Containerfile
- Introduce `bootc-base-image-rebuild-self` that can be used to
  resynthesize the base image, and it has docs.
- Rework the standard image to put its build instructions in
  usr/share/doc/bootc-image-standard to serve as a reference

Signed-off-by: Colin Walters <walters@verbum.org>
2025-02-11 08:57:48 -05:00

18 lines
686 B
Docker

# This generates the "standard" base image, deriving from the minimal base.
# This is a local reference by default because we haven't shipped this image yet.
FROM localhost/fedora-bootc:base
# Copy in our configuration and build scripts. Most of the heavy lifting
# is in `stage-install` which we emit into /usr/share/doc so it can be
# used as a reference in other images.
COPY usr/ /usr/
RUN <<EORUN
set -xeuo pipefail
# This script installs our default packages. These scripts
# are not a stable API, but may become one in the future.
/usr/share/doc/bootc-image-standard/stage-install
# Cleanup
/usr/share/doc/bootc-image-standard/stage-clean
# And lint.
bootc container lint
EORUN