Copy built files from docker container and run them on server

So I have a very simple scenario and I’m not sure how to handle this.

  1. Commit changes
  2. Gitlab runner is triggered on server
  3. Code is built to a binary inside a docker container
    — From here I don’t know what to do
  4. I want to move the binary to the host
  5. I want to run the binary on the host
  6. Job succeeds
  7. Binary keeps running on server

Basically I want to be able to run the built binary outside of the docker container and have the job succeed as soon as the binary has been started. Is that possible?