Closed convoi closed 5 years ago
the reason is that this copy is copying the directory instead of the binary:
COPY --from=builder /go/src/github.com/soundcloud/ipmi_exporter /bin/ipmi_exporter
it should be
COPY --from=builder /go/src/github.com/soundcloud/ipmi_exporter/ipmi_exporter /bin/ipmi_exporter
also it would be better to set that binary as the entrypoint and --config /config/config.yml as the argument, so the image can be run with different arguments if needed.
Hi, thanks for flagging this, the COPY
line is a typo indeed. The entrypoint thing also makes sense.
Should be fixed, let me know if you have any further issues.
make docker
docker run 2c5d72b255fa