From e55a79fd0ec89cdc9e18897846cac1fbb1e4bea7 Mon Sep 17 00:00:00 2001 From: Odomey Date: Sat, 21 Dec 2024 18:18:10 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 750f203aa..0a20e237e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # docker build . -t cosmwasm/wasmd:latest # docker run --rm -it cosmwasm/wasmd:latest /bin/sh -FROM golang:1.23-alpine3.19 AS go-builder +FROM golang:1.21-alpine3.19 AS go-builder # this comes from standard alpine nightly file # https://github.com/rust-lang/docker-rust-nightly/blob/master/alpine3.12/Dockerfile @@ -15,10 +15,10 @@ RUN apk add git WORKDIR /code COPY . /code/ # See https://github.com/CosmWasm/wasmvm/releases -ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.2.1/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a -ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.2.1/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a -RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep ba6cb5db6b14a265c8556326c045880908db9b1d2ffb5d4aa9f09ac09b24cecc -RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep b3bd755efac0ff39c01b59b8110f961c48aa3eb93588071d7a628270cc1f2326 +ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.0.0/libwasmvm_muslc.aarch64.a /lib/libwasmvm_muslc.aarch64.a +ADD https://github.com/CosmWasm/wasmvm/releases/download/v2.0.0/libwasmvm_muslc.x86_64.a /lib/libwasmvm_muslc.x86_64.a +RUN sha256sum /lib/libwasmvm_muslc.aarch64.a | grep 3b478b3e51d31e53ce9cc58c3f93f8d9a4e5d661b526956b5a7e16e9fd55d88e +RUN sha256sum /lib/libwasmvm_muslc.x86_64.a | grep 3b478b3e51d31e53ce9cc58c3f93f8d9a4e5d661b526956b5a7e16e9fd55d88e # force it to use static lib (from above) not standard libgo_cosmwasm.so file RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LINK_STATICALLY=true make build @@ -26,7 +26,7 @@ RUN echo "Ensuring binary is statically linked ..." \ && (file /code/build/wasmd | grep "statically linked") # -------------------------------------------------------- -FROM alpine:3.18 +FROM alpine:3.19 COPY --from=go-builder /code/build/wasmd /usr/bin/wasmd @@ -42,4 +42,5 @@ EXPOSE 26656 # tendermint rpc EXPOSE 26657 -CMD ["/usr/bin/wasmd", "version"] +CMD ["/usr/bin/wasmd", "version"] +