-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into max/fix-redelegate-cli
- Loading branch information
Showing
4 changed files
with
86 additions
and
1 deletion.
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,10 @@ | ||
.idea | ||
.vscode | ||
node_modules | ||
release | ||
.DS_Store | ||
/scripts/ | ||
test/.env | ||
chain | ||
|
||
build |
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,27 @@ | ||
ARG IMG_TAG=latest | ||
|
||
# Compile the kyved binary | ||
FROM golang:1.20-alpine AS kyved-builder | ||
|
||
# Install make | ||
RUN apk add --no-cache make | ||
|
||
WORKDIR /go/src | ||
|
||
# Install dependencies | ||
COPY go.mod go.sum* ./ | ||
RUN --mount=type=cache,target=/root/.cache/go-build \ | ||
--mount=type=cache,target=/root/go/pkg/mod \ | ||
go mod download | ||
COPY . . | ||
|
||
ENV ENV=mainnet | ||
RUN make install | ||
|
||
# Copy binary to a distroless container | ||
FROM gcr.io/distroless/static-debian11:$IMG_TAG | ||
|
||
COPY --from=kyved-builder "/go/bin/kyved" /usr/local/bin/ | ||
EXPOSE 26656 26657 1317 9090 | ||
|
||
ENTRYPOINT ["kyved"] |
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