diff --git a/build/bot/Dockerfile.linux b/build/bot/Dockerfile.linux index 2ca3c18853..3a489abecb 100644 --- a/build/bot/Dockerfile.linux +++ b/build/bot/Dockerfile.linux @@ -5,3 +5,8 @@ WORKDIR /source # Prevent git error because the owner of /source does not exist in the Docker container. RUN git config --global --add safe.directory /source + +# Configure Go tool cache locations +ENV GOPATH=/cache/go +ENV GOCACHE=/cache/go/cache +ENV GOMODCACHE=/cache/go/modcache \ No newline at end of file diff --git a/build/bot/Dockerfile.ppa b/build/bot/Dockerfile.ppa index dcda640ad6..2f9c5e5891 100644 --- a/build/bot/Dockerfile.ppa +++ b/build/bot/Dockerfile.ppa @@ -12,3 +12,8 @@ WORKDIR /source # Prevent git error because the owner of /source does not exist in the Docker container. RUN git config --global --add safe.directory /source + +# Configure Go tool cache locations +ENV GOPATH=/cache/go +ENV GOCACHE=/cache/go/cache +ENV GOMODCACHE=/cache/go/modcache