From 8c1d0e31b40438efd1017535babf8429164a401f Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Tue, 5 Jan 2016 09:23:53 +0100 Subject: [PATCH] example cannot work, pip needs --requirement The example is not explicit, but the requirements.txt file is most likely a list of requirements (i.e. list of packages to be installed) and not a python package itself. As such it needs the "--requirements" or "-r" option. Signed-off-by: Anthon van der Neut --- docs/articles/dockerfile_best-practices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/articles/dockerfile_best-practices.md b/docs/articles/dockerfile_best-practices.md index fad98f57f4..e15052395f 100644 --- a/docs/articles/dockerfile_best-practices.md +++ b/docs/articles/dockerfile_best-practices.md @@ -312,7 +312,7 @@ specifically required files change. For example: COPY requirements.txt /tmp/ - RUN pip install /tmp/requirements.txt + RUN pip install --requirement /tmp/requirements.txt COPY . /tmp/ Results in fewer cache invalidations for the `RUN` step, than if you put the