I think i have solved the issue.
The issue was getting the version number of code aster. I installed gnu-which package inside the container and then rebuild the sif file.
Also i added the following line in
/opt/salome-meca/2025/V2025.1.0_scibian_univ/tools/Code_aster_frontend-202510/etc/codeaster/profile_local.sh
export localhost=$HOSTNAME