在docker文件中执行go build -o / bin / go_docker时找不到二进制文件

below is the content of the dockerfile

FROM golang:1.8 as goimage

ENV SRC=/go/src/

RUN mkdir -p /go/src/

RUN mkdir /go/src/go_docker

WORKDIR /go/src/go_docker

RUN cd /go/src/go_docker

COPY StoreImage.go .

RUN go build -o /bin/go_docker

CMD ["/bin/go_docker"]

Docker build is successful for the above content.. But dont see the binary file generated in /bin/go_docker

Can someone please help me with this.

Make sure StoreImage.go can copy into docker

Binary file is created in /bin location and go_docker is the created binary file. .exe will not be the extension in linux whereas .exe will be seen only in windows