chore: use go 1.24.1 to build

This commit is contained in:
mhatal
2025-03-18 22:00:32 -05:00
parent fa21cf6007
commit d9bdfcc5d1
2 changed files with 7 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:1.22 as builder FROM golang:1.24.1 as builder
WORKDIR /app WORKDIR /app
@@ -19,10 +19,9 @@ WORKDIR /app
RUN apk --no-cache add ca-certificates tzdata RUN apk --no-cache add ca-certificates tzdata
COPY --from=builder /app/main . COPY --from=builder /app/main /usr/local/bin/brc20-indexer
COPY --from=builder /app/modules ./modules
# You can set TZ identifier to change the timezone, See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List # You can set TZ identifier to change the timezone, See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# ENV TZ=US/Central # ENV TZ=US/Central
ENTRYPOINT ["/app/main"] ENTRYPOINT ["brc20-indexer"]

View File

@@ -113,7 +113,7 @@ services:
- 8080:8080 # Expose HTTP server port to host - 8080:8080 # Expose HTTP server port to host
volumes: volumes:
- "./config.yaml:/app/config.yaml" # mount config.yaml file to the container as "/app/config.yaml" - "./config.yaml:/app/config.yaml" # mount config.yaml file to the container as "/app/config.yaml"
command: ["/app/main", "run", "--modules", "runes"] # Put module flags after "run" commands to select which modules to run. command: ["run", "--modules", "runes"] # Put module flags after "run" commands to select which modules to run.
``` ```
### Install from source ### Install from source