Remove no-op multistage builds from Dockerfiles #379
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NB: I may be misunderstanding the intended outcome so please verify my proposed change carefully 😄
AFAICT, a
FROM
statement without a followingas <name>
, as seen here, will have no effect on the built image. (I expect the image gets pulled, but that seems like a side-effect here, not an output?)So - I think these extra FROM are redundant and can be discarded. My understanding is that if they were followed by a name (
FROM nodejs as node
) and had separate build instructions, that would be a multi-stage build, but that as-is these are a multi-stage build with a single output, and that the state is cleared when the second FROM command is reached.