I use gitlabCI so the paths to my project will already be there, but you can make an aditionnal copy to add your project
/opt/st/stm32cubeide_1.4.0/stm32cubeide --launcher.suppressErrors -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data /opt/workspace -import MYPROJECTPATH
sh /opt/st/stm32cubeide_1.4.0/headless_build.sh -build MYPROJECT -data /opt/workspace
docker build -t rotule666/st-stm32cubeide:1.4.0 .
docker images
docker run -d -it rotule666/st-stm32cubeide:1.4.0
docker ps
docker exec -ti e9f68b168184 bash
docker push rotule666/st-stm32cubeide:1.4.0
docker image prune -a
docker container prune
in order to prepare the install script need to be modified.
download the zip file from st
extract the zip file and get the original setup .sh
mkdir output
./st-stm32cubeide_1.4.0_7511_20200720_0928_amd64.sh --tar -xvf -C output
rm setupOriginal.sh
mv output/setup.sh setupOriginal.sh
then just fix the top of setupOriginal.sh to remove the check for license and move it to setup.sh