Procházet zdrojové kódy

Merge pull request #145 from docker/feat-test-cache

Add buildkit cache when running unit tests
Chris Crone před 5 roky
rodič
revize
8f2c134c79
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -63,4 +63,5 @@ COPY --from=make-cross /api/bin/* .
 
 FROM base as test
 ENV CGO_ENABLED=0
-RUN make -f builder.Makefile test
+RUN --mount=id=build,type=cache,target=/root/.cache/go-build \
+    make -f builder.Makefile test