build: fix docker build on main (#18538)
This commit is contained in:
+13
-2
@@ -23,10 +23,21 @@ WORKDIR /go/src/github.com/cosmos/cosmos-sdk
|
||||
|
||||
# optimization: if go.sum didn't change, docker will use cached image
|
||||
COPY go.mod go.sum ./
|
||||
COPY math/go.mod math/go.sum ./math/
|
||||
COPY api/go.mod api/go.sum ./api/
|
||||
COPY core/go.mod core/go.sum ./core/
|
||||
COPY collections/go.mod collections/go.sum ./collections/
|
||||
COPY store/go.mod store/go.sum ./store/
|
||||
COPY log/go.mod log/go.sum ./log/
|
||||
|
||||
COPY x/tx/go.mod x/tx/go.sum /x/tx/
|
||||
COPY x/protocolpool/go.mod x/protocolpool/go.sum ./x/protocolpool/
|
||||
COPY x/gov/go.mod x/gov/go.sum ./x/gov/
|
||||
COPY x/distribution/go.mod x/distribution/go.sum ./x/distribution/
|
||||
COPY x/slashing/go.mod x/slashing/go.sum ./x/slashing/
|
||||
COPY x/staking/go.mod x/staking/go.sum ./x/staking/
|
||||
COPY x/auth/go.mod x/auth/go.sum ./x/auth/
|
||||
COPY x/authz/go.mod x/authz/go.sum ./x/authz/
|
||||
COPY x/bank/go.mod x/bank/go.sum ./x/bank/
|
||||
COPY x/mint/go.mod x/mint/go.sum ./x/mint/
|
||||
RUN go mod download
|
||||
|
||||
# Add source files
|
||||
|
||||
Reference in New Issue
Block a user