forked from Canto-Network/Canto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make a static build and upload as artifact. This makes it possible to download the binary produced for each PR. In a follow up PR we could also automate binary upload upon release as well as enabling different arch or OS. Note that we use musl-gcc as it allows to statically link a libc implementation while CGO_ENABLED=0 only was leading to the error below: ``` ethermint@v0.22.0-sdk50-1/app/ante/eip712.go:293:36: undefined: secp256k1.RecoverPubkey ethermint@v0.22.0-sdk50-1/app/ante/eip712.go:319:17: undefined: secp256k1.VerifySignature ```
- Loading branch information
1 parent
12a18d7
commit d176908
Showing
2 changed files
with
50 additions
and
18 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 |
---|---|---|
@@ -1,23 +1,25 @@ | ||
FROM golang:stretch AS build-env | ||
# TODO: debugging | ||
FROM golang:1.21 AS build-env | ||
|
||
WORKDIR /go/src/github.com/canto/canto | ||
|
||
RUN apt-get update -y | ||
RUN apt-get install git -y | ||
RUN curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun | ||
|
||
COPY . . | ||
|
||
RUN make build | ||
|
||
FROM golang:stretch | ||
|
||
RUN apt-get update -y | ||
RUN apt-get install ca-certificates jq -y | ||
|
||
WORKDIR /root | ||
|
||
COPY --from=build-env /go/src/github.com/canto/canto/build/cantod /usr/bin/cantod | ||
|
||
EXPOSE 26656 26657 1317 9090 | ||
|
||
CMD ["cantod"] | ||
# FROM golang:stretch | ||
# | ||
# RUN apt-get update -y | ||
# RUN apt-get install ca-certificates jq -y | ||
# | ||
# WORKDIR /root | ||
# | ||
# COPY --from=build-env /go/src/github.com/canto/canto/build/cantod /usr/bin/cantod | ||
# | ||
# EXPOSE 26656 26657 1317 9090 | ||
# | ||
# CMD ["cantod"] |