mtmacdonald / docker-laravel

A Docker container for Laravel web apps
MIT License
122 stars 33 forks source link

Did not work on Mac OSX #14

Closed hopewise closed 8 years ago

hopewise commented 8 years ago

I tried building Dockerfile on windows 10 with no problems.. But when I tried to build in on Mac OS Capitan, I got this error:

Step 8 : RUN /provision/provision.sh
 ---> Running in e08680f71aa2
/bin/sh: 1: /provision/provision.sh: Permission denied

I tried to add chmod +x

RUN chmod +x /provision/provision.sh

I could build the Dockerfile, but actually provision.sh was not executed.. so nothing was provisioned.. What do you advice?

hopewise commented 8 years ago

Oh, I found the solution, its just to:

$ chmod +x ./provision/provision.sh

So, no need to add chmod +x after RUN in Dockerfile