Skip to content

Commit a04c48c

Browse files
committed
fix: dockerfile indexer.go path updated and force the toolcahin to auto
1 parent 61b96b3 commit a04c48c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

2222
RUN chmod +x indexer
2323
RUN touch config.yml
@@ -31,4 +31,4 @@ COPY --from=builder --chown=nonroot:nonroot /app/config.yml .
3131

3232
USER nonroot
3333

34-
ENTRYPOINT ["/app/indexer"]
34+
ENTRYPOINT ["/app/indexer"]

Dockerfile-api

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1919
RUN touch config-api.yml
2020
RUN chmod +x build/api
@@ -27,4 +27,4 @@ COPY --from=builder --chown=nonroot:nonroot /app/config-api.yml .
2727

2828
USER nonroot
2929

30-
ENTRYPOINT ["/app/api"]
30+
ENTRYPOINT ["/app/api"]

0 commit comments

Comments
 (0)