Skip to content

Commit

Permalink
fix dockerfile reordering
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Nov 3, 2023
1 parent d30b362 commit c38def5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions makeDockerfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ for (const proposal of readProposals()) {
blocks.push(stage.EXECUTE(proposal));
}

// TEST depends on USE but define it first but Docker can resolve the dependencies in any order.
blocks.push(stage.TEST(proposal));
// Put USE last so that the last proposal is the default target to build.
// The stages must be output in dependency order because if the builder finds a FROM
// that it hasn't built yet, it will search for it in the registry. But it won't be there!
blocks.push(stage.USE(proposal));
blocks.push(stage.TEST(proposal));
previousProposal = proposal;
}

Expand Down

0 comments on commit c38def5

Please sign in to comment.