Dockerfile.node: Don't install wasmvm

Now that we don't depend on the cosmos-sdk packages we don't need this
anymore.
This commit is contained in:
Chirantan Ekbote 2022-09-30 11:02:54 +09:00 committed by Chirantan Ekbote
parent afda43a2a0
commit 2914e48780
1 changed files with 1 additions and 3 deletions

View File

@ -23,9 +23,7 @@ ARG GO_BUILD_ARGS=-race
RUN --mount=type=cache,target=/root/.cache --mount=type=cache,target=/go \
cd node && \
go build ${GO_BUILD_ARGS} -gcflags="all=-N -l" --ldflags '-extldflags "-Wl,--allow-multiple-definition" -X "github.com/certusone/wormhole/node/cmd/guardiand.Build=dev"' -mod=readonly -o /guardiand github.com/certusone/wormhole/node && \
go get github.com/CosmWasm/wasmvm@v0.16.2 && \
cp /go/pkg/mod/github.com/!cosm!wasm/wasmvm@v0.16.2/api/libwasmvm.so /usr/lib/
go build ${GO_BUILD_ARGS} -gcflags="all=-N -l" --ldflags '-extldflags "-Wl,--allow-multiple-definition" -X "github.com/certusone/wormhole/node/cmd/guardiand.Build=dev"' -mod=readonly -o /guardiand github.com/certusone/wormhole/node
# Only export the final binary (+ shared objects). This reduces the image size
# from ~1GB to ~150MB.