Docker does not allow to change environment variables of a container. Instead, it needs to be recreated. This means unnecessary downloading from within the container like the dotnet SDK on every config change.
In addition, the configuration file option is marked as deprecated so an alternative might soon be gone.
Suggestion
Allow a shell script to be mounted that will run just before the Terraria server starts. This would allow setting of environment variables on startup. For example:
export TMOD_MOTD="Welcome to my server running on $(uname -pr)!"
Problem context
Docker does not allow to change environment variables of a container. Instead, it needs to be recreated. This means unnecessary downloading from within the container like the dotnet SDK on every config change. In addition, the configuration file option is marked as deprecated so an alternative might soon be gone.
Suggestion
Allow a shell script to be mounted that will run just before the Terraria server starts. This would allow setting of environment variables on startup. For example: