Skip to content

Format strips --from directive in Dockerfile #90

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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