Using docker init to write Dockerfile and docker-compose configs

Are you one of those who find writing Dockerfiles, and docker-compose.yml files painful? At least I never enjoyed it. I always wondered if I was following the best practices, and not introducing security vulnerabilities unknowingly while writing the Dockerfile , docker-compose…