Many repeated code is used. Use a single base image and apply the provider-specific config on top. https://github.com/bpmct/code-server-heroku