title: How to use pipes(ioredirection) in Dockerfile RUN?
body: <p>Following line in Dockerfile doesn't work:</p>
  
  <pre><code>RUN git archive master | tar -x -C /path
  </code></pre>
  
  <p>Error message:</p>
  
  <pre><code>fatal: Not a valid object name
  tar: This does not look like a tar archive
  tar: Exiting with failure status due to previous errors
  </code></pre>
  
  <p>How to solve this issue?</p>