I'm doing something extremely simple. Here is my Dockerfile
:
FROM alpine:latest
ADD hello.sh /bin/hello
RUN chmod +x /bin/hello
CMD /bin/hello
Then I build the image:
docker build -t hello .
Then I run the image:
docker run hello
And here is the output:
/bin/sh: /bin/hello: not found
Why is this happening? If I run:
docker run hello cat /bin/hello
I can see the content of my script, which makes me even more confused.