-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into add-release-flow
- Loading branch information
Showing
18 changed files
with
117 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM golang:1.20-alpine as builder | ||
|
||
ENV GOPATH /go | ||
ENV GOOS=linux | ||
ENV CGO_ENABLED=1 | ||
|
||
WORKDIR /go/delivery/zeta-node | ||
|
||
RUN apk update && \ | ||
apk --no-cache add git make build-base jq openssh libusb-dev linux-headers bash curl tmux | ||
|
||
COPY go.mod . | ||
COPY go.sum . | ||
|
||
RUN --mount=type=cache,target=/root/.cache/go-build \ | ||
go mod download | ||
|
||
COPY . . | ||
|
||
RUN --mount=type=cache,target=/root/.cache/go-build \ | ||
make install | ||
|
||
RUN cp /go/bin/zetaclientd /usr/local/bin | ||
RUN cp /go/bin/zetacored /usr/local/bin | ||
RUN cp /go/bin/smoketest /usr/local/bin | ||
|
||
#BUILD MAIN BINARY IMAGE | ||
FROM golang:1.20-alpine | ||
|
||
RUN apk --no-cache add jq bash curl wget nano tmux | ||
|
||
COPY --chmod=765 --from=builder /usr/local/bin/zetaclientd /usr/local/bin/zetaclientd | ||
COPY --chmod=765 --from=builder /usr/local/bin/zetacored /usr/local/bin/zetacored | ||
|
||
WORKDIR /root/zetachain/ | ||
|
||
EXPOSE 26657 | ||
EXPOSE 26656 | ||
EXPOSE 1317 | ||
EXPOSE 9090 |
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
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
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
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
Oops, something went wrong.