fix: avoid simd not exist error when make localnet-build-env (#23164)
This commit is contained in:
parent
b3cecf0f34
commit
76169e757c
@ -68,4 +68,4 @@ WORKDIR /root
|
||||
RUN apk add --no-cache curl make bash jq sed
|
||||
|
||||
# Copy over binaries from the build-env
|
||||
COPY --from=build-env /go/src/github.com/cosmos/cosmos-sdk/build/simd /usr/bin/simd
|
||||
COPY --from=build-env /go/src/github.com/cosmos/cosmos-sdk/build/simdv2 /usr/bin/simd
|
||||
|
||||
@ -11,10 +11,12 @@ COPY core/go.mod core/go.sum /work/core/
|
||||
COPY collections/go.mod collections/go.sum /work/collections/
|
||||
COPY store/go.mod store/go.sum /work/store/
|
||||
COPY x/tx/go.mod x/tx/go.sum /work/x/tx/
|
||||
COPY x/bank/go.mod x/bank/go.sum /work/x/bank/
|
||||
COPY x/staking/go.mod x/staking/go.sum /work/x/staking/
|
||||
RUN go mod download
|
||||
|
||||
COPY ./ /work
|
||||
RUN LEDGER_ENABLED=false make COSMOS_BUILD_OPTIONS="debug,nostrip" clean build
|
||||
RUN LEDGER_ENABLED=false make COSMOS_BUILD_OPTIONS="v2,debug,nostrip" clean build
|
||||
|
||||
|
||||
FROM alpine AS run
|
||||
@ -27,5 +29,5 @@ VOLUME /simd
|
||||
WORKDIR /simd
|
||||
|
||||
COPY contrib/images/simd-dlv/wrapper.sh /usr/bin/wrapper.sh
|
||||
COPY --from=build /work/build/simd /simd/
|
||||
COPY --from=build /work/build/simdv2 /simd/
|
||||
COPY --from=build /go/bin/dlv /usr/local/bin
|
||||
|
||||
@ -45,4 +45,4 @@ VOLUME /simd
|
||||
WORKDIR /simd
|
||||
|
||||
COPY contrib/images/simd-env/wrapper.sh /usr/bin/wrapper.sh
|
||||
COPY --from=build /work/build/simd /simd/
|
||||
COPY --from=build /work/build/simdv2 /simd/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user