Skip to content

Commit 9ae7e56

Browse files
committed
Use the minimal JRE for running DiffDetective
This reduces the size of the Docker images by about one third.
1 parent d6d68de commit 9ae7e56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ in
6666
postInstall = ''
6767
local jar="$out/share/java/DiffDetective-Demo.jar"
6868
install -Dm644 "target/diffdetectivedemo-${version}-jar-with-dependencies.jar" "$jar"
69-
makeWrapper "${pkgs.jdk}/bin/java" "$out/bin/DiffDetective-Demo" \
69+
makeWrapper "${DiffDetective.jre-minimal}/bin/java" "$out/bin/DiffDetective-Demo" \
7070
--add-flags "-cp '$jar' org.variantsync.diffdetectivedemo.Main" \
7171
--prefix PATH : "${pkgs.graphviz}/bin"
7272
'';

0 commit comments

Comments
 (0)