title: Specify dockerignore from command line
body: <p>I have a .dockerignore file, but for one use case, I want to specify the contents of .dockerignore at the command line, something like:</p>
  
  <pre><code>docker build --ignore="node_modules" -t foo . 
  </code></pre>
  
  <p>is there a way to do this from the command line? I am not seeing this in the docs: <a href="https://docs.docker.com/engine/reference/commandline/build/#build-with--" rel="noreferrer">https://docs.docker.com/engine/reference/commandline/build/#build-with--</a></p>