I want to do some compilations of my go files etc and I want to transfer the resulting binaries etc to host. So everybody don't need to do local setup and they can just run docker command and output is compiled in docker and transferred to host.
FROM golang:1.11-alpine as builder
COPY src /go/src/project/src
RUN cd /go/src/project/src && go build -o myBin
Now I want myBin
to be transferred to host. Any ideas?
PS: I want it done without running a container. If just running the build can do it, it's best!