How to install tool-scons from commandline?

While maintaining dockerized builder for esp8266/esp32 I am installing platforms when docker image is created. But when running platformio over a oroject with this setup, it always installs scons inside the docker slowing down the build and cluttering logfile.

How can I install this core part manually in Dockerfile

PIO will install all core dependency on the first build. You can try to create “fake” project and build it.

Interesting, I was thinking about exactly this workaround but now I see it’s not just a workaround but also great test of the Docker image being valid. Thanks, issue solved.