node: fix dockerfile

This commit is contained in:
Evan Gray 2022-09-29 19:45:21 +00:00 committed by Evan Gray
parent 9352784c89
commit 3177cf7eb5
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,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/
# Only export the final binary (+ shared objects). This reduces the image size