How to specify different .dockerignore files for different builds in the same project?
<p>I used to list the <code>tests</code> directory in <code>.dockerignore</code> so that it wouldn't get included in the image, which I used to run a web service.</p>

<p>Now I'm trying to use Docker to run my unit tests, and in this case I want the <code>tests</code> directory included.</p>

<p>I've checked <code>docker build -h</code> and found no option related.</p>

<p>How can I do this?</p>