diff options
| author | seth <[email protected]> | 2024-01-19 22:17:31 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-01-20 05:56:19 -0500 |
| commit | 290a84e86b2f2c3cb1403f94eff416e74d536abd (patch) | |
| tree | ea3a3138e6949905c2a4e60e8e5905d3f6412867 /akmods/Containerfile | |
initial commit
Diffstat (limited to 'akmods/Containerfile')
| -rw-r--r-- | akmods/Containerfile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/akmods/Containerfile b/akmods/Containerfile new file mode 100644 index 0000000..5d2c892 --- /dev/null +++ b/akmods/Containerfile @@ -0,0 +1,21 @@ +ARG BASE_IMAGE="quay.io/fedora-ostree-desktops/base" +ARG FEDORA_VERSION="${FEDORA_VERSION:-39}" + +FROM ${BASE_IMAGE}:${FEDORA_VERSION} as builder +ARG NVIDIA_VERSION="${NVIDIA_VERSION:-535}" + +COPY prep.sh /tmp/prep.sh +COPY build_*.sh /tmp +COPY install.sh /tmp/install.sh +COPY certs /tmp/certs +COPY akmods-cert.spec /tmp/akmods-cert/akmods-cert.spec + +RUN /tmp/prep.sh + +RUN /tmp/build_nvidia.sh ${NVIDIA_VERSION} +RUN /tmp/build_cert.sh + +RUN /tmp/install.sh + +FROM scratch +COPY --from=builder /var/cache/rpms /rpms |
