I'm working on a Go service with Docker, and thinking that as it is compiled, to deploy code in production, I just need the docker compose, and the Docker image published on my registry.
As I come from PHP world, I am used to clone my whole project to deploy it.
Is there any way I could deploy my project only with docker-compose file ?
I saw on this post that I can git clone only a single file, but it feels that it is not a good way to do, what is the best practice to deploy a Go Microservice with Docker ?