diff --git a/networks/local/exocore/Dockerfile b/networks/local/exocore/Dockerfile index 619f52e2e..026f80abd 100644 --- a/networks/local/exocore/Dockerfile +++ b/networks/local/exocore/Dockerfile @@ -1,5 +1,5 @@ -FROM golang:1.21-alpine AS build -RUN apk add build-base linux-headers git +FROM golang:1.21.0-alpine3.18 AS build +RUN apk add --no-cache build-base=0.5-r3 linux-headers=6.3-r0 git=2.40.1-r0 # Set working directory for the build WORKDIR /go/work # Add source files @@ -9,16 +9,17 @@ COPY . ./ RUN LEDGER_ENABLED=false make build ##################################### -FROM alpine AS run -RUN apk add bash curl jq +FROM alpine:3.18 AS run +RUN apk add --no-cache bash=5.2.15-r5 curl=8.5.0-r0 jq=1.6-r4 EXPOSE 26656 26657 1317 9090 8545 8546 # TODO: exocore testnet chainid is still under consideration and need to be finalized later -CMD ["start", "--log_format", "plain","--chain-id","exocoretestnet_233-1", "--metrics", "--json-rpc.api", "eth,txpool,personal,net,debug,web3", "--api.enable", "--json-rpc.enable", "true"] +CMD ["start", "--log_format", "plain", "--chain-id", "exocoretestnet_233-1", "--metrics", "--json-rpc.api", "eth,txpool,personal,net,debug,web3", "--api.enable", "--json-rpc.enable", "true", "--minimum-gas-prices", "0.0001aexocore"] +# by default, a SIGKILL is sent after 10 seconds. We need to override this to allow graceful shutdown. STOPSIGNAL SIGTERM VOLUME /exocore WORKDIR /exocore -COPY networks/local/exocore/wrapper.sh /usr/bin/wrapper.sh +COPY ./networks/local/exocore/wrapper.sh /usr/bin/wrapper.sh COPY --from=build /go/work/build/exocored /exocore ENTRYPOINT ["/usr/bin/wrapper.sh"] \ No newline at end of file