Files
fedora-toolbox/Containerfile
Dave Jansen 0e038f8fc8
Some checks failed
Build container image / Build and push image (push) Failing after 2m33s
Switch to downloading the latest version of host-spawn
2025-12-02 19:30:55 +09:00

26 lines
744 B
Docker

ARG FEDORA_BASE=43
# 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
### 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