Use devcontainers outside of Visual Studio Code.
devcon
.devcontainer/devcontainer.yml
devcon rebuild --no-cache