Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
chore: remove dnf cache and unused files from built image (#26)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
p5 and noelmiller authored Feb 29, 2024
1 parent e2fbaa4 commit aa4aecd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.devcontainer
.git*
*.md
action.yml
LICENSE
6 changes: 4 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit aa4aecd

Please sign in to comment.