PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, November 6, 2022

[FIXED] where should I put .dockerignore?

 November 06, 2022     docker, docker-compose     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

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

Total Pageviews

1,207,237

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © 2025 PHPFixing