From c38def5982e53b3a9761d67052b3a5e37cf3e6a0 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Fri, 3 Nov 2023 15:21:40 -0700 Subject: [PATCH] fix dockerfile reordering --- makeDockerfile.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makeDockerfile.ts b/makeDockerfile.ts index dffebc03..39f30543 100755 --- a/makeDockerfile.ts +++ b/makeDockerfile.ts @@ -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; }