-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add build setup for validator script
- Loading branch information
1 parent
0b34683
commit 7738058
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM scratch | ||
ENTRYPOINT ["/sedad"] | ||
COPY sedad / | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
|