I am trying to build my project inside the docker, so here are my Dockerfile looks like
build stage
FROM golang as builder
ENV GO111MODULE=on
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go get -d -v ./graphTry
RUN go install ./graphTry
RUN go build -o /go/bin/akew ./graphTry/server/server.go
# final stage
FROM alpine:3.7 as final
WORKDIR /usr/bin
COPY --from=build /go/bin .
EXPOSE 8080
CMD ["./akew"]
so the file which is the entry point to the program is “server” it is inside the
graphTry/server
when I try to build docker it returns an error
reading ./graphTry/server/server.go: unexpected NUL in input
what does it mean, one more thing my project not inside GOPATH, does it matter ?