From 06a4e5f9815d55a91b17cc1eb6556bf029057ec6 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 12 Nov 2015 16:30:40 +0100 Subject: [PATCH] Docs: improve caching for make docs Use caching for all other repositories, instead of doing a svn checkout each time. This may result in showing outdated docs for other repositories, but --no-cache can be used if the latest docs are needed. Signed-off-by: Sebastiaan van Stijn --- docs/Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/Dockerfile b/docs/Dockerfile index 4bda0271e7..51e792523c 100644 --- a/docs/Dockerfile +++ b/docs/Dockerfile @@ -1,11 +1,6 @@ FROM docs/base:hugo-github-linking MAINTAINER Mary Anthony (@moxiegirl) -# To get the git info for this repo -COPY . /src - -COPY . /docs/content/engine - RUN svn checkout https://github.com/docker/compose/trunk/docs /docs/content/compose RUN svn checkout https://github.com/docker/swarm/trunk/docs /docs/content/swarm RUN svn checkout https://github.com/docker/machine/trunk/docs /docs/content/machine @@ -14,3 +9,7 @@ RUN svn checkout https://github.com/kitematic/kitematic/trunk/docs /docs/content RUN svn checkout https://github.com/docker/tutorials/trunk/docs /docs/content/ RUN svn checkout https://github.com/docker/opensource/trunk/docs /docs/content/opensource +# To get the git info for this repo +COPY . /src + +COPY . /docs/content/engine