how to run a command in command line which runs on docker cli

  docker, docker-compose, rspec

I want to run my rails rspec test on docker. If I open Cli via docker desktop and write

-bundle exec rspec spec

my tests run.
What I want is, to run my tests with a command in makefile which up my image and run this command

Source: Docker Questions