The Dockerfile (and docker-compose) simplify the server's deployment. The environment variables avoid secrets in the code.