Running a bash script from alpine based docker
To run a bash script in alpine based image, you need to do either one
Install bash
$ RUN apk add --update bash
Use
#!/bin/sh
in script instead of#!/bin/bash
You need to do any one of these two or both
Or, like @Maroun's answer in comment, you can change your CMD to execute your bash script
CMD ["sh", "./script.sh"]