Can I run custom .sh files while building docker image?
I want to use docker with custom
nginx module. So I have to download nginx, extract, rebuild and install it. It’s a lot of work.
Can I implement this logic in
.sh file and ask docker to execute this file while building image. I tried:
ADD nginx/nginx-build.sh /home/fbelov/nginx-build.sh RUN ["/home/fbelov/nginx-build.sh"]
but it doesn’t work
---> Running in e90e561c3b80 /bin/sh: 1: /home/fbelov/nginx-build.sh: not found INFO The command [/bin/sh -c /home/fbelov/nginx-build.sh] returned a non-zero code: 127