settermjd / docker-for-local-development

This project provides a basic Docker setup, for building a local development environment for Zend Expressive, and other PHP application development.
MIT License
70 stars 37 forks source link

Is Step 2 mandatory ? #7

Closed omatrot closed 7 years ago

omatrot commented 7 years ago

Do we really need to put all of the cloned files in the root of the php application ? Is there another way ? I'm looking for a way to include a php directory that is located elsewhere on my computer.

settermjd commented 7 years ago

Hey, @omatrot; no, you don't need to. If you don't want all the files, say LICENSE, and README.md, then add them to a .dockerignore file. These work similarly to .gitignore files. Any file listed there will be ignored by commands such as COPY, ADD, etc.

I'll update the linked tutorial to include this as well. Thanks for pointing it out.