mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
build/bot: configure go cache
This commit is contained in:
parent
12a1050704
commit
33be0abec2
2 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue