I am very new to Docker. I figured out on internet on how to build a dockerfile and then create an image.
This is how my docker file looks like:
FROM scratch
ADD abc.py .
RUN pip3 install requests json HTTPBasicAuth
CMD [ "python3", "./abc.py"]
I am using scratch (base image) as I am on a Linux server where we are not allowed to connect to the outside world.
The thing is I am getting the below error when i try to run Docker build command i.e. docker build -t testimage .
OCI runtime create failed: container_linux.go:345: starting container process caused "exec: "/bin/sh": stat /bin/sh: no such file or directory": unknown
Can anyone explain why is this and what would be the solution. I got some idea about the problem but couldn't identify the solution.