Bläddra i källkod

Merge pull request #17942 from thaJeztah/speedy-boarding

Docs: improve caching for make docs
moxiegirl 9 år sedan
förälder
incheckning
c8399630ca
1 ändrade filer med 4 tillägg och 5 borttagningar
  1. 4 5
      docs/Dockerfile

+ 4 - 5
docs/Dockerfile

@@ -1,11 +1,6 @@
 FROM docs/base:hugo-github-linking
 FROM docs/base:hugo-github-linking
 MAINTAINER Mary Anthony <mary@docker.com> (@moxiegirl)
 MAINTAINER Mary Anthony <mary@docker.com> (@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/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/swarm/trunk/docs /docs/content/swarm
 RUN svn checkout https://github.com/docker/machine/trunk/docs /docs/content/machine
 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/tutorials/trunk/docs /docs/content/
 RUN svn checkout https://github.com/docker/opensource/trunk/docs /docs/content/opensource
 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