Skip to content

Format strips --from directive in Dockerfile #90

@sjbodzo

Description

@sjbodzo

Running on a recent Emacs under Linux x86_64, I notice formatting on save breaks the Dockerfile.

The formatting strips out commands for multi-stage builds:

COPY --from=builder /go/src/app/bin/foo /usr/bin

gets reformatted to:

COPY /go/src/app/bin/foo /usr/bin

This breaks multi-stage builds relying on copying files/artifacts between the phases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions