diff --git a/Containerfile b/Containerfile index b45dc4c..0d1241c 100644 --- a/Containerfile +++ b/Containerfile @@ -1,4 +1,9 @@ -FROM docker.io/fedora:44 +FROM docker.io/fedora:44 as BUILDER + +RUN dnf install --assumeyes --setopt install_weak_deps=False \ + gcc make just + +FROM BUILDER as PACKER RUN dnf install \ --assumeyes \ diff --git a/Justfile b/Justfile index 09bc39f..af6d19c 100644 --- a/Justfile +++ b/Justfile @@ -1,2 +1,2 @@ -image: - podman build -t rpmpacker . +image TARGET='PACKER': + podman build --target {{ TARGET }} -t {{ lowercase(TARGET) }} .