You can set environment variables in your container without altering the container image by using one of the options below. See the Developing inside a Container article for additional information.
This article includes advanced setup scenarios for the Visual Studio Code Remote - Containers extension.