docker build -t docker_sample .
docker run -d -p 8080:8080 docker_sample # and the server should start instantly curl http://localhost:8080
docker build -t docker_sample:test . docker run --rm docker_sample:test