-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
129 changed files
with
1,364 additions
and
3,559 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 |
---|---|---|
@@ -1,26 +1,28 @@ | ||
ARG GO_VERSION="1.20" | ||
ARG RUNNER_IMAGE="golang:${GO_VERSION}-alpine3.17" | ||
ARG GO_VERSION="1.22.5" | ||
FROM golang:${GO_VERSION}-bookworm AS build-env | ||
ARG GITHUB_USER | ||
ARG GITHUB_TOKEN | ||
|
||
FROM golang:${GO_VERSION}-bullseye AS build-env | ||
|
||
WORKDIR /go/src/github.com/sagaxyz/sagacli | ||
WORKDIR /root | ||
|
||
RUN apt-get update -y | ||
|
||
COPY . . | ||
|
||
RUN git config --global --add url."https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/" | ||
RUN make build | ||
|
||
FROM ${RUNNER_IMAGE} | ||
FROM golang:${GO_VERSION}-alpine3.20 | ||
|
||
COPY --from=build-env /go/src/github.com/sagaxyz/sagacli/build/sscd /usr/bin/sscd | ||
COPY --from=build-env /root/build/sscd /usr/bin/ | ||
COPY --from=build-env /root/start.sh /root/ | ||
|
||
RUN apk add gcompat bash | ||
RUN apk add gcompat bash curl | ||
|
||
EXPOSE 26656 | ||
EXPOSE 26660 | ||
EXPOSE 26657 | ||
EXPOSE 1317 | ||
EXPOSE 9090 | ||
|
||
CMD ["sscd", "start"] | ||
CMD ["bash","/root/start.sh"] |
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.