Skip to content
José Lorenzo Rodríguez edited this page Feb 4, 2018 · 1 revision

FROM aliases (stage names) must be unique

Problematic code:

FROM debian:jesse as build

RUN stuff

FROM debian:jesse as build

RUN more_stuff

Correct code:

FROM debian:jesse as build

RUN stuff

FROM debian:jesse as another-alias

RUN more_stuff

Rationale:

Defining duplicate stage names results in an error.

Clone this wiki locally