Theia IDE with Pure Python

How can i build pure python only supported IDE, as i have seen while building Image using Dockerfile provide in Theia-Python-Docker , there are some unnecessary(specifically i don’t want those)
packages like gcc, g++, or some other random stuff

How can i remove all those so that i can minimize Docker Image Size

TIA

@DilLip_Chowdary some tools are prerequisites in order to build the application itself:

Using a multi-stage approach, you can ensure that the final layer has exactly what you require and nothing more.
Remember that some things are necessary in order to build the application, and other things like (vscode plugins) are necessary to have a greater plugin compatibility.