Skip to content

Commit

Permalink
Docker: always put the base container last in the dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Sep 11, 2024
1 parent edcd116 commit 2cf0dd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Build/Docker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,11 @@ sub parse {
}
}
}
if ($basecontainer) {
# always put the base container last
@{$ret->{'deps'}} = grep {$_ ne $basecontainer} @{$ret->{'deps'}};
push @{$ret->{'deps'}}, $basecontainer;
}
push @{$ret->{'deps'}}, '--dorecommends--', '--dosupplements--' if $plusrecommended;
push @{$ret->{'deps'}}, '--unorderedimagerepos' if $unorderedrepos;
my $version = $ret->{'version'};
Expand Down

0 comments on commit 2cf0dd0

Please sign in to comment.