2021-11-16 03:23:52 -08:00
|
|
|
FROM docker.io/golang:1.19.0@sha256:4c00329e17be6fedd8bd4412df454a205348da00f9e0e5d763380a29eb096b75
|
|
|
|
|
|
|
|
#used for a readiness probe
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt install -y netcat
|
|
|
|
RUN apt install -y jq
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2022-10-21 13:28:04 -07:00
|
|
|
COPY ./wormchain/go.mod .
|
|
|
|
COPY ./wormchain/go.sum .
|
2022-09-20 20:04:55 -07:00
|
|
|
COPY ./sdk /sdk
|
2021-11-16 03:23:52 -08:00
|
|
|
RUN go mod download
|
|
|
|
|
2022-10-21 13:28:04 -07:00
|
|
|
COPY ./wormchain .
|
2021-11-16 03:23:52 -08:00
|
|
|
|
|
|
|
EXPOSE 26657
|
|
|
|
EXPOSE 26656
|
|
|
|
EXPOSE 6060
|
|
|
|
EXPOSE 9090
|
|
|
|
EXPOSE 1317
|
|
|
|
EXPOSE 4500
|
|
|
|
|
|
|
|
RUN unset GOPATH
|
|
|
|
|
|
|
|
RUN make client
|
2022-10-21 13:28:04 -07:00
|
|
|
RUN chmod +x /app/build/wormchaind
|
2021-11-16 03:23:52 -08:00
|
|
|
RUN make validators
|
2022-10-21 13:28:04 -07:00
|
|
|
RUN /app/build/wormchaind collect-gentxs --home /app/build
|
2021-11-16 03:23:52 -08:00
|
|
|
|
2022-10-21 13:28:04 -07:00
|
|
|
ENTRYPOINT ["/bin/bash","-c","/app/build/wormchaind start"]
|