Sunday, November 6, 2022

[FIXED] where should I put .dockerignore?

Issue

enter image description here

I have dockerfile in each folder(admin, portal, webpai). and docker-compose file in root only(proxy.yml, services.yml) where should I put .dockerignore file? in each folder? or root folder only?


Solution

As each build instruction uses the specified directory (containing the Dockerfile) as buildcontext, you need to put the .dockerignore into every folder.



Answered By - PHagemann
Answer Checked By - Candace Johnson (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.