diff --git a/develop/develop-images/dockerfile_best-practices.md b/develop/develop-images/dockerfile_best-practices.md index 4010258e7e..fd78f89a53 100644 --- a/develop/develop-images/dockerfile_best-practices.md +++ b/develop/develop-images/dockerfile_best-practices.md @@ -170,13 +170,13 @@ context, refer to [exclude with .dockerignore](#exclude-with-dockerignore). > > docker build -t myimage:latest -< FROM busybox -> COPY somefile.txt . +> COPY somefile.txt ./ > RUN cat /somefile.txt > EOF > > # observe that the build fails > ... -> Step 2/3 : COPY somefile.txt . +> Step 2/3 : COPY somefile.txt ./ > COPY failed: stat /var/lib/docker/tmp/docker-builder249218248/somefile.txt: no such file or directory > ``` @@ -206,7 +206,7 @@ touch somefile.txt # build an image using the current directory as context, and a Dockerfile passed through stdin docker build -t myimage:latest -f- . <