I\'m trying to run a script during my building process in my Dockerfile. But it doesn\'t seems to work.
I tried that way:
FROM php:7-fpm
ADD bootstra
In addition to the answers above:
If you created/edited your .sh script file in Windows, make sure it was saved with line ending in Unix format. By default many editors in Windows will convert Unix line endings to Windows format and Linux will not recognize shebang (#!/bin/sh) at the beginning of the file. So Linux will produce the error message like if there is no shebang.
Tips: