-
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.
- Loading branch information
1 parent
069138a
commit a74e489
Showing
3 changed files
with
34 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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
build/ | ||
|
||
config.local.yaml | ||
Dockerfile | ||
# Coverage | ||
coverage.* | ||
vendor |
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,32 @@ | ||
FROM golang:1.22-alpine as buildbase | ||
|
||
RUN apk add git build-base | ||
|
||
WORKDIR /go/src/github.com/forbole/callisto | ||
|
||
ENV GO111MODULE="on" | ||
ENV CGO_ENABLED=1 | ||
ENV GOOS="linux" | ||
ENV GOPRIVATE=github.com/* | ||
ENV GONOSUMDB=github.com/* | ||
ENV GONOPROXY=github.com/* | ||
|
||
COPY ./go.mod ./go.sum ./ | ||
# Read the CI_ACCESS_TOKEN from the .env file | ||
ARG CI_ACCESS_TOKEN | ||
RUN git config --global url."https://olegfomenkodev:${CI_ACCESS_TOKEN}@github.com/".insteadOf "https://github.com/" | ||
COPY . . | ||
|
||
RUN #go mod vendor | ||
RUN go build -mod=vendor -o /usr/local/bin/bdjuno /go/src/github.com/forbole/callisto/cmd/bdjuno | ||
|
||
|
||
FROM alpine:3.9 | ||
|
||
COPY --from=buildbase /usr/local/bin/bdjuno /usr/local/bin/bdjuno | ||
|
||
RUN apk add --no-cache ca-certificates | ||
|
||
COPY ./genesis.json /genesis/genesis.json | ||
|
||
ENTRYPOINT ["bdjuno"] |
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