Simple example to deploy a docker container to run Visual Studio Code CLI to establish a remote tunnel to use with https://vscode.dev/
Save both Dockerfile
and docker-compose.yml
in a folder.
Create a sub-folder called home
to persist the user data
Start with
docker compose up vscode -d
Check the logs for instructions to authorize the tunnel with Github and get the tunnel URL:
docker logs -f vscode