11# syntax=docker/dockerfile:1
22
3- # Please, when adding/editing this Dockerfile also take care of Dockerfile.cosmovisor as well
4-
53ARG GO_VERSION="1.21"
64ARG RUNNER_IMAGE="gcr.io/distroless/static-debian11"
75ARG BUILD_TAGS="netgo,ledger,muslc"
@@ -29,12 +27,12 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
2927 go mod download
3028
3129# Cosmwasm - Download correct libwasmvm version
32- RUN ARCH=$(uname -m) && WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm/v2 | sed 's/.* //' ) && \
30+ RUN ARCH=$(uname -m) && WASMVM_VERSION=$(go list -m github.com/CosmWasm/wasmvm | sed 's/.* //' ) && \
3331 wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/libwasmvm_muslc.$ARCH.a \
34- -O /lib/libwasmvm_muslc.$ARCH. a && \
32+ -O /lib/libwasmvm_muslc.a && \
3533 # verify checksum
3634 wget https://github.com/CosmWasm/wasmvm/releases/download/$WASMVM_VERSION/checksums.txt -O /tmp/checksums.txt && \
37- sha256sum /lib/libwasmvm_muslc.$ARCH. a | grep $(cat /tmp/checksums.txt | grep libwasmvm_muslc.$ARCH | cut -d ' ' -f 1)
35+ sha256sum /lib/libwasmvm_muslc.a | grep $(cat /tmp/checksums.txt | grep libwasmvm_muslc.$ARCH | cut -d ' ' -f 1)
3836
3937# Copy the remaining files
4038COPY . .
@@ -44,7 +42,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
4442 --mount=type=cache,target=/root/go/pkg/mod \
4543 GOWORK=off go build \
4644 -mod=readonly \
47- -tags "netgo,ledger,muslc" \
45+ -tags ${BUILD_TAGS} \
4846 -ldflags \
4947 "-X github.com/cosmos/cosmos-sdk/version.Name=" osmosis" \
5048 -X github.com/cosmos/cosmos-sdk/version.AppName=" osmosisd" \
@@ -64,7 +62,7 @@ FROM ${RUNNER_IMAGE}
6462
6563COPY --from=builder /osmosis/build/osmosisd /bin/osmosisd
6664
67- ENV HOME= /osmosis
65+ ENV HOME /osmosis
6866WORKDIR $HOME
6967
7068EXPOSE 26656
0 commit comments