diff --git a/Dockerfile b/Dockerfile index 212d0e1..40b78e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,11 @@ 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}'); \ + WASM_VERSION=$(go list -m all | grep github.com/CosmWasm/wasmvm || true); \ if [ ! -z "${WASM_VERSION}" ]; then \ - wget -O /lib/libwasmvm_muslc.a https://github.com/CosmWasm/wasmvm/releases/download/${WASM_VERSION}/libwasmvm_muslc.${ARCH}.a; \ + WASMVM_REPO=$(echo $WASM_VERSION | awk '{print $1}');\ + WASMVM_VERS=$(echo $WASM_VERSION | awk '{print $2}');\ + wget -O /lib/libwasmvm_muslc.a https://${WASMVM_REPO}/releases/download/${WASMVM_VERS}/libwasmvm_muslc.$(uname -m).a;\ fi; \ go mod download;