diff --git a/Makefile b/Makefile index 700799c5..4380e09a 100644 --- a/Makefile +++ b/Makefile @@ -127,8 +127,8 @@ whitespace += $(whitespace) comma := , build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags)) -ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=umee \ - -X github.com/cosmos/cosmos-sdk/version.AppName=umeed \ +ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=seda-chain \ + -X github.com/cosmos/cosmos-sdk/version.AppName=seda-chaind \ -X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \ -X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \ -X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \ diff --git a/dockers/goreleaser.Dockefile b/dockers/goreleaser.Dockefile new file mode 100644 index 00000000..73340057 --- /dev/null +++ b/dockers/goreleaser.Dockefile @@ -0,0 +1,5 @@ +FROM scratch +ENTRYPOINT ["/sedad"] +COPY sedad / + + diff --git a/dockers/sedad.Dockerfile b/dockers/sedad.Dockerfile new file mode 100644 index 00000000..558f515c --- /dev/null +++ b/dockers/sedad.Dockerfile @@ -0,0 +1,35 @@ +FROM golang:1.21-bookworm AS builder + +WORKDIR /src/ +COPY go.mod ./ +RUN go mod download + +COPY . . + + +RUN make install + + +FROM ubuntu:23.04 +EXPOSE 26656 26657 1317 9090 +CMD ["seda-chaind"] +STOPSIGNAL SIGTERM + + +RUN apt-get update && apt-get install ca-certificates -y \ + && groupadd seda && useradd -g seda -m seda + + + +COPY --from=builder /go/bin/seda-chaind /usr/local/bin/ +COPY --from=builder /go/pkg/mod/github.com/\!cosm\!wasm/wasmvm\@v*/internal/api/libwasmvm.*.so /usr/lib/ + + +FROM ubuntu:23.04 +EXPOSE 26656 26657 1317 9090 + +COPY --from=builder /go/bin/seda-chaind /usr/local/bin/ + +RUN seda-chaind create validator + +