docs icon indicating copy to clipboard operation
docs copied to clipboard

Invalid Dockerfile

Open BusHero opened this issue 3 years ago • 0 comments

The Dockerfile used in the section "Custom build outputs" is invalid.

The following scenario fails GIVEN I'm using the following Dockerfile

FROM golang AS build-stage
RUN go get -u github.com/LK4D4/vndr

FROM scratch AS export-stage
COPY --from=build-stage /go/bin/vndr /

WHEN I'm running docker build -o out . THEN my docker container builds successfully

The following error is generated:

go: go.mod file not found in current directory or any parent directory.
        'go get' is no longer supported outside a module.
        To build and install a command, use 'go install' with a version,
        like 'go install example.com/cmd@latest'
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.

File: engine/reference/commandline/build.md

BusHero avatar Oct 10 '22 18:10 BusHero