浏览代码

Merge pull request #19077 from AvdN/patch-2

example cannot work, pip needs --requirement
Sebastiaan van Stijn 9 年之前
父节点
当前提交
d9a3812656
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/articles/dockerfile_best-practices.md

+ 1 - 1
docs/articles/dockerfile_best-practices.md

@@ -312,7 +312,7 @@ specifically required files change.
 For example:
 For example:
 
 
     COPY requirements.txt /tmp/
     COPY requirements.txt /tmp/
-    RUN pip install /tmp/requirements.txt
+    RUN pip install --requirement /tmp/requirements.txt
     COPY . /tmp/
     COPY . /tmp/
 
 
 Results in fewer cache invalidations for the `RUN` step, than if you put the
 Results in fewer cache invalidations for the `RUN` step, than if you put the