chore: remove dnf cache and unused files from built image (#26)

* chore: add a `dnf clean all` step after installing deps

* chore: only copy the required files to the image

* fix: add scripts to the image

* Switch to .dockerignore file

---------

Co-authored-by: Noel Miller <4983138+noelmiller@users.noreply.github.com>
This commit is contained in:
Robert Sturla 2024-02-29 19:49:12 +00:00 committed by GitHub
parent e2fbaa438c
commit aa4aecdc7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
.devcontainer
.git*
*.md
action.yml
LICENSE

View File

@ -16,10 +16,12 @@ ENV WEB_UI="false"
ENV SECURE_BOOT_KEY_URL=""
ENV ENROLLMENT_PASSWORD="ublue-os"
COPY / /isogenerator
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