Well, this fun moment when you're trying to follow the answer from stackoverflow =)
https://stackoverflow.com/questions/45141402/build-and-run-dockerfile-with-one-command
dvat@dvat-test:~/dvat-artp$ docker run --rm -it $(docker build -q .)
free(): invalid pointer
SIGABRT: abort
PC=0x7f01fd8c8e97 m=0 sigcode=18446744073709551610
signal arrived during cgo execution