Dockerfile中的以下行不起作用:
RUN git archive master | tar -x -C /path
错误信息:
fatal: Not a valid object name
tar: This does not look like a tar archive
tar: Exiting with failure status due to prevIoUs errors
如何解决这个问题?
最佳答案
以下变化怎么样:git archive master | tar xf – -C /路径?