Cannot able to run the container

I’m using a base image as Python (python 3.8) and upon creating a docker file there is no error while creating a docker and container but when I try to run the container I’m getting an error like
exec /usr/local/bin/python: no such file or directory
even tried python3 and got the same error whereas it was working fine before
with the interactive session of the container, I’m able to see the path and also the Python version is visible