From 8b707037a21003a82a2a15e6f77379def2c9425b Mon Sep 17 00:00:00 2001 From: Robert Sturla Date: Thu, 22 Feb 2024 17:00:57 +0000 Subject: [PATCH 1/4] chore: add a `dnf clean all` step after installing deps --- Containerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index 5d20332f..9fa5a183 100644 --- a/Containerfile +++ b/Containerfile @@ -17,7 +17,9 @@ ENV WEB_UI="false" COPY / /isogenerator WORKDIR /isogenerator -RUN dnf install -y make && make install-deps +RUN dnf install -y make && \ + make install-deps && \ + dnf clean all VOLUME /isogenerator/output From c96d1dc5f32dd675fb42367b2e34349905c21b65 Mon Sep 17 00:00:00 2001 From: Robert Sturla Date: Thu, 22 Feb 2024 17:01:19 +0000 Subject: [PATCH 2/4] chore: only copy the required files to the image --- Containerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index 9fa5a183..cb6b95c5 100644 --- a/Containerfile +++ b/Containerfile @@ -14,7 +14,9 @@ ENV VARIANT="Kinoite" ENV VERSION="${VERSION}" ENV WEB_UI="false" -COPY / /isogenerator +COPY ./lorax_templates /isogenerator/lorax_templates +COPY ./xorriso /isogenerator/xorriso +COPY ./Makefile /isogenerator/ WORKDIR /isogenerator RUN dnf install -y make && \ From 302a52c100ebfd848129311da3d6ef58aa48dcf9 Mon Sep 17 00:00:00 2001 From: Robert Sturla Date: Tue, 27 Feb 2024 16:58:12 +0000 Subject: [PATCH 3/4] fix: add scripts to the image --- Containerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Containerfile b/Containerfile index cb6b95c5..55e49ffb 100644 --- a/Containerfile +++ b/Containerfile @@ -15,6 +15,7 @@ ENV VERSION="${VERSION}" ENV WEB_UI="false" COPY ./lorax_templates /isogenerator/lorax_templates +COPY ./scripts /isogenerator/scripts COPY ./xorriso /isogenerator/xorriso COPY ./Makefile /isogenerator/ WORKDIR /isogenerator From c465ba4742d5a80a99ffe228fe6f881d7f2e6c4b Mon Sep 17 00:00:00 2001 From: Robert Sturla Date: Thu, 29 Feb 2024 00:06:41 +0000 Subject: [PATCH 4/4] Switch to .dockerignore file --- .dockerignore | 5 +++++ Containerfile | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..ed990215 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +.devcontainer +.git* +*.md +action.yml +LICENSE diff --git a/Containerfile b/Containerfile index 55e49ffb..249b95b9 100644 --- a/Containerfile +++ b/Containerfile @@ -14,10 +14,7 @@ ENV VARIANT="Kinoite" ENV VERSION="${VERSION}" ENV WEB_UI="false" -COPY ./lorax_templates /isogenerator/lorax_templates -COPY ./scripts /isogenerator/scripts -COPY ./xorriso /isogenerator/xorriso -COPY ./Makefile /isogenerator/ +COPY ./ /isogenerator WORKDIR /isogenerator RUN dnf install -y make && \