Skip to content

Commit

Permalink
fixed regex
Browse files Browse the repository at this point in the history
  • Loading branch information
pompon0 committed Jan 14, 2025
1 parent f17ec67 commit 4cf18a1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ WORKDIR /code
ADD go.mod go.sum ./
RUN set -eux; \
export ARCH=$(uname -m); \
WASM_VERSION=$(go list -m all | grep github.com/CosmWasm/wasmvm | awk '{print $2}'); \
# Currently github.com/CosmWasm/wasmvm is being overriden by github.com/sei-protocol/sei-wasmvm
# (see go.mod). However the rust precompiles are still fetched from the upstream repository.
# Here we assume that the sei-wasm release version is prefixed with the wasmvm release version
# with the matching precompiles. Therefore, to compute the download url, we just strip the suffix
# of the sei-wasm release version.
WASM_VERSION=$(go list -f {{.Replace.Version}} -m github.com/CosmWasm/wasmvm | sed s/-.*//); \
if [ ! -z "${WASM_VERSION}" ]; then \
wget -O /lib/libwasmvm_muslc.a https://github.com/CosmWasm/wasmvm/releases/download/${WASM_VERSION}/libwasmvm_muslc.${ARCH}.a; \
fi; \
Expand All @@ -45,4 +50,4 @@ COPY --from=go-builder /code/build/seid /usr/bin/seid
# rest server, tendermint p2p, tendermint rpc
EXPOSE 1317 26656 26657

CMD ["/usr/bin/seid", "version"]
CMD ["/usr/bin/seid", "version"]

0 comments on commit 4cf18a1

Please sign in to comment.