-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Feature: apps * Add some endpoints * Add actions endpoint * Add series endpoint and tests * Fix: leaderboard
- Loading branch information
1 parent
13507fe
commit 48ba5a5
Showing
52 changed files
with
3,155 additions
and
16 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
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,38 @@ | ||
# --------------------------------------------------------------------- | ||
# The first stage container, for building the application | ||
# --------------------------------------------------------------------- | ||
FROM golang:1.23-alpine as builder | ||
|
||
ENV CGO_ENABLED=0 | ||
ENV GO111MODULE=on | ||
ENV GOOS=linux | ||
|
||
RUN apk --no-cache add ca-certificates | ||
RUN apk add --update git | ||
|
||
RUN mkdir -p $GOPATH/src/github.com/celenium-io/astria-indexer/ | ||
|
||
COPY ./go.* $GOPATH/src/github.com/celenium-io/astria-indexer/ | ||
WORKDIR $GOPATH/src/github.com/celenium-io/astria-indexer | ||
RUN go mod download | ||
|
||
COPY cmd/private_api cmd/private_api | ||
COPY internal internal | ||
COPY pkg pkg | ||
|
||
WORKDIR $GOPATH/src/github.com/celenium-io/astria-indexer/cmd/private_api/ | ||
RUN go build -a -installsuffix cgo -o /go/bin/private_api . | ||
|
||
# --------------------------------------------------------------------- | ||
# The second stage container, for running the application | ||
# --------------------------------------------------------------------- | ||
FROM scratch | ||
|
||
WORKDIR /app/private_api | ||
|
||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=builder /go/bin/private_api /go/bin/private_api | ||
COPY ./configs/dipdup.yml ./ | ||
COPY database database | ||
|
||
ENTRYPOINT ["/go/bin/private_api", "-c", "dipdup.yml"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.