-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(indexer): Add api to docker-compose
- Loading branch information
Will Cory
authored and
Will Cory
committed
Jun 9, 2023
1 parent
722812d
commit 242ec64
Showing
3 changed files
with
48 additions
and
34 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 |
---|---|---|
|
@@ -15,4 +15,6 @@ FROM alpine:3.15 | |
|
||
COPY --from=builder /go/indexer/indexer /usr/local/bin | ||
|
||
RUN mkdir /configs | ||
|
||
CMD ["indexer"] |
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,19 @@ | ||
FROM golang:1.18.0-alpine3.15 as builder | ||
|
||
RUN apk add --no-cache make gcc musl-dev linux-headers git jq bash | ||
|
||
COPY ./indexer /go/indexer | ||
COPY ./.git /go/.git | ||
COPY ./indexer/go.mod /go/indexer/go.mod | ||
COPY ./indexer/go.sum /go/indexer/go.sum | ||
|
||
|
||
WORKDIR /go/indexer | ||
RUN make indexer-refresh | ||
|
||
FROM alpine:3.15 | ||
|
||
COPY --from=builder /go/indexer/indexer-refresh /usr/local/bin | ||
|
||
CMD ["indexer-refresh"] | ||
|
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