diff --git a/.dockerignore b/.dockerignore index 5201e48524..2fe08c8f23 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 2627d692c3..609b749e54 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