docker-php-5.3-apache icon indicating copy to clipboard operation
docker-php-5.3-apache copied to clipboard

updating workdir

Open nithinpuch opened this issue 7 years ago • 1 comments

updating workdir to /home/site/wwwroot for the webserver to access the web app, which is generally deployed under "/home/site/wwwroot"

nithinpuch avatar Oct 06 '17 00:10 nithinpuch

Hi @nithinpuch

The reason the workdir is /var/www/html is that's where apache has it's default root: See this line: https://github.com/eugeneware/docker-php-5.3-apache/blob/master/apache2.conf#L57

Changing the workdir here only changed the default current directory, and is probably not what you want.

/var/www/html is the default directory as used by the default https://hub.docker.com/_/php/ project, and I'm trying to maintain backwards compatibility with that.

But feel free to fork this for your own purposes, and to change the apache.conf file as part of the build.

Or, alternatively, if that's the only thing you'd like to change, then you could create your own Dockerfile that does something like:

FROM eugeneware/php-5.3
WORKDIR /home/site/wwwroot

Hope that helps.

eugeneware avatar Oct 06 '17 00:10 eugeneware