diff --git a/Dockerfile b/Dockerfile index bb2b8efa..ec5416a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,16 @@ WORKDIR /app COPY go.mod go.sum ./ RUN go mod download +# Cosmwasm - Download correct libwasmvm version +RUN WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm | cut -d ' ' -f 2) && \ + wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm_muslc.$(uname -m).a \ + -O /lib/libwasmvm_muslc.a && \ + # verify checksum + wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/checksums.txt -O /tmp/checksums.txt && \ + sha256sum /lib/libwasmvm_muslc.a | grep $(cat /tmp/checksums.txt | grep $(uname -m) | cut -d ' ' -f 1) + COPY . . -RUN make build +RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build # Runner FROM alpine