From cc071b79c34f792b6cef7962d54e088d66a8c956 Mon Sep 17 00:00:00 2001 From: Diego Quintana Date: Wed, 16 Jan 2019 12:21:58 -0300 Subject: [PATCH] Add information about `.dockerignore` Because it's useful to know. --- slides/containers/Building_Images_With_Dockerfiles.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/slides/containers/Building_Images_With_Dockerfiles.md b/slides/containers/Building_Images_With_Dockerfiles.md index 6c4ed788..dde99d47 100644 --- a/slides/containers/Building_Images_With_Dockerfiles.md +++ b/slides/containers/Building_Images_With_Dockerfiles.md @@ -131,6 +131,12 @@ Sending build context to Docker daemon 2.048 kB * Be careful (or patient) if that directory is big and your link is slow. +* You can speed up the process with a [`.dockerignore`](https://docs.docker.com/engine/reference/builder/#dockerignore-file) file + + * It tells docker to ignore specific files in the directory + + * Only ignore files that you won't need in the build context! + --- ## Executing each step