COPY install_frappe.sh /install_frappe
RUN /install_frappe
However it gives an error of
/bin/sh: 1: /install_frappe: not found
I tried debugging by removing the RUN command, built the image and run the docker image using an interactive shell. Inside the interactive shell, the file install_frappe exists, but when I tried to run using /bin/sh /install_frappe, it gives me the same error.
I solved it. The issue was apparently the script file was not recognized as script file anymore. I had to delete it and manually create the file again, and copied the content over into the script file.
Thank you so much for helping me out. If it wasn’t for your idea I would not have thought of creating a test script file and ran. Much much thanks.
The chmod part solved it for me. Also, had to specify the correct shebang, for the shell that’s used in the container. With the incorrect one, it still gave the same error as though the file was not found.