소스 검색

Fix the url in comparison of "COPY" and "RUN curl"

From context on next line,`tar -xJC` implies
the file is `big.tar.xz` instead of `big.tar.gz`.

Signed-off-by: Wenxuan Zhao <viz@linux.com>
Wenxuan Zhao 10 년 전
부모
커밋
3dd134ceca
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/articles/dockerfile_best-practices.md

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

@@ -290,7 +290,7 @@ things like:
 And instead, do something like:
 And instead, do something like:
 
 
     RUN mkdir -p /usr/src/things \
     RUN mkdir -p /usr/src/things \
-        && curl -SL http://example.com/big.tar.gz \
+        && curl -SL http://example.com/big.tar.xz \
         | tar -xJC /usr/src/things \
         | tar -xJC /usr/src/things \
         && make -C /usr/src/things all
         && make -C /usr/src/things all