Files
fedora-toolbox/Containerfile

29 lines
794 B
Docker

ARG FEDORA_BASE=43
ARG HOST_SPAWN=v1.6.2
# Allow build scripts to be referenced without being copied into the final image
FROM scratch AS ctx
COPY build_files /
COPY /sys_files /sys_files
COPY cosign.pub /cosign.pub
# Base Image
FROM registry.fedoraproject.org/fedora-toolbox:$FEDORA_BASE
ENV HOST_SPAWN=$HOST_SPAWN
### MODIFICATIONS
## make modifications desired in your image and install packages by modifying the build.sh script
## the following RUN directive does all the things required to run "build.sh" as recommended.
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \
/ctx/build.sh
### LINTING
## Verify final image and contents are correct.
RUN bootc container lint