title: How to download a specific git-lfs file into a Docker container
body: <p>I have a git repo with several large files. Git-LFS is enabled. I want to bring in one of the files into a Docker container. I have installed git-lfs in the container. So far I have:</p>
  <pre><code>RUN git clone --no-checkout --depth 1 https://github.com/my-org/my-data-repo.git
  RUN cd my-data-repo
  RUN git lfs pull -I data/my-large-file.csv
  </code></pre>
  <p>The file actually get's downloaded but the Docker build process fails because I get the following error:</p>
  <pre><code>Error updating the git index: (1/1), 90 MB | 4.8 MB/s                                                                                                                                                                                       
  error: data/my-large-file.csv: cannot add to the index - missing --add option?
  fatal: Unable to process path data/my-large-file.csv
  
  
  Errors logged to .git/lfs/logs/20200709T142011.864584.log
  Use `git lfs logs last` to view the log.
  </code></pre>
  <p>How can do this without an exception being thrown which kills the Docker build process?</p>