How to fix the Docker build error: GO?

I have a small golang application, the strucrure

-root
main.go
–stack
stack.go
I run it in VSCode and it works fine.
But when I try to build the Docker image I receive the error:

Step 1/12 : FROM golang:alpine AS builder
alpine: Pulling from library/golang
Digest: sha256:73182a0a24a1534e31ad9cc9e3a4bb46bb030a883b26eda0a87060f679b83607
Status: Image is up to date for golang:alpine
—> 1a87ceb1ace5
Step 2/12 : WORKDIR /go/src/app
—> Using cache
—> 1f36bd183e78
Step 3/12 : COPY . .
—> Using cache
—> 41ade1971b1c
Step 4/12 : RUN apk add --no-cache git
—> Using cache
—> 8ad0266fe7e5
Step 5/12 : RUN go get -d -v ./…
—> Running in 1f6bd697c7b4
unexpected directory layout:
import path: _/go/src/app/stack
root: /go/src
dir: /go/src/app/stack
expand root: /go
expand dir: /go/src/app/stack
separator: /
The command ‘/bin/sh -c go get -d -v ./…’ returned a non-zero code: 1

Here is my Dockerfile

build stage
FROM golang:alpine AS builder
WORKDIR /go/src/app
COPY . .
RUN apk add --no-cache git
RUN go get -d -v ./…
RUN go install -v ./…
#final stage
FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=builder /go/bin/app /app
ENTRYPOINT ./app
LABEL Name=golang Version=0.0.1
EXPOSE 3000