File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ RUN if [ -z "$VERSION" ]; then \
1414 else VERSION="${GIT_BRANCH}-${GIT_COMMIT}" ; \
1515 fi; \
1616 fi && \
17- go build -ldflags="-s -w \
17+ GOTOOLCHAIN=auto go build -ldflags="-s -w \
1818 -X 'github.com/Cogwheel-Validator/spectra-gnoland-indexer/indexer/cmd.Commit=${GIT_COMMIT}' \
1919 -X 'github.com/Cogwheel-Validator/spectra-gnoland-indexer/indexer/cmd.Version=${VERSION}'" \
20- -o indexer ./indexer
20+ -o indexer ./indexer/cmd/indexer.go
2121
2222RUN chmod +x indexer
2323RUN touch config.yml
@@ -31,4 +31,4 @@ COPY --from=builder --chown=nonroot:nonroot /app/config.yml .
3131
3232USER nonroot
3333
34- ENTRYPOINT ["/app/indexer" ]
34+ ENTRYPOINT ["/app/indexer" ]
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ RUN if [ -z "$VERSION" ]; then \
1414 else VERSION="${GIT_BRANCH}-${GIT_COMMIT}"; \
1515 fi; \
1616 fi && \
17- go build -ldflags="-s -w -X main.Commit=${GIT_COMMIT} -X main.Version=${VERSION}" -o build/api ./api
17+ GOTOOLCHAIN=auto go build -ldflags="-s -w -X main.Commit=${GIT_COMMIT} -X main.Version=${VERSION}" -o build/api ./api
1818
1919RUN touch config-api.yml
2020RUN chmod +x build/api
@@ -27,4 +27,4 @@ COPY --from=builder --chown=nonroot:nonroot /app/config-api.yml .
2727
2828USER nonroot
2929
30- ENTRYPOINT ["/app/api"]
30+ ENTRYPOINT ["/app/api"]
You can’t perform that action at this time.
0 commit comments