Docker

Docker

Made by DeepSource

FROM aliases (stage names) must be unique DOK-DL3024

Bug risk
Major

Defining duplicate stage names results in an error.

Bad Practice

FROM debian:jesse as build
RUN apt update

FROM debian:jesse as build
RUN mkdir /app

Recommended

FROM debian:jesse as build
RUN apt update

FROM debian:jesse as another-alias
RUN mkdir /app