From 90357b4d74b18ff6727ea4097d427abc29ef6447 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Fri, 8 Feb 2019 13:26:41 -0700 Subject: [PATCH] Speed up build --- .dockerignore | 1 + Dockerfile.dapper | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index 5201e4852447..2fe08c8f231d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,6 +4,7 @@ ./pkg/data/zz_generated_bindata.go ./package/data.tar.gz ./.vagrant +./.cache ./.dapper ./data-dir ./dist diff --git a/Dockerfile.dapper b/Dockerfile.dapper index 2627d692c351..609b749e54de 100644 --- a/Dockerfile.dapper +++ b/Dockerfile.dapper @@ -16,7 +16,7 @@ RUN rm -rf /go/src /go/pkg ARG DAPPER_HOST_ARCH ENV ARCH $DAPPER_HOST_ARCH -ENV DAPPER_RUN_ARGS --privileged +ENV DAPPER_RUN_ARGS --privileged -v k3s-cache:/go/src/github.com/rancher/k3s/.cache ENV DAPPER_ENV REPO TAG DRONE_TAG IMAGE_NAME ENV DAPPER_SOURCE /go/src/github.com/rancher/k3s/ ENV DAPPER_OUTPUT ./bin ./dist ./build/out