hadolint/DL3023¶
COPY --from cannot reference its own FROM alias.
| Property | Value |
|---|---|
| Severity | Error |
| Category | Correctness |
| Default | Enabled |
Description¶
A COPY --from instruction must not reference the same stage it is running in. Trying to copy from the current stage results in an error because the
stage has not yet been finalized.