CosmosContracts / juno

Open Source Platform for Interoperable Smart Contracts
Apache License 2.0
311 stars 172 forks source link

Docker crashes due to old Alpine and Go version #1074

Open taitruong opened 1 week ago

taitruong commented 1 week ago

https://github.com/CosmosContracts/juno/blob/de3c4d145c7a96c31e3fca6fe8850ce4ab559e33/Dockerfile#L3

As noted by @Reecepbcups the problem is old version being used.

My logs when it gets crashed:

debug-juno.log

taitruong commented 1 week ago

Found this issue: https://github.com/CosmWasm/wasmvm/issues/523

So should use Alpine 3.18 like here: https://github.com/CosmWasm/wasmd/blob/v0.53.0/Dockerfile

...
FROM golang:1.22-alpine3.18 AS go-builder
...
FROM alpine:3.18

COPY --from=go-builder /code/build/wasmd /usr/bin/wasmd
...