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

@@ -34,9 +34,9 @@ It comes with a set of APIs for querying historical Runes data. See our [API Ref
#### 1. Hardware Requirements #### 1. Hardware Requirements
Each module requires different hardware requirements. Each module requires different hardware requirements.
| Module | CPU | RAM | | Module | CPU | RAM |
| ------ | --------- | ---- | | ------ | --------- | ---- |
| Runes | 0.5 cores | 1 GB | | Runes | 0.5 cores | 1 GB |
#### 2. Prepare Bitcoin Core RPC server. #### 2. Prepare Bitcoin Core RPC server.
@@ -49,7 +49,7 @@ Gaze Indexer has first-class support for PostgreSQL. If you wish to use other da
Here is our minimum database disk space requirement for each module. Here is our minimum database disk space requirement for each module.
| Module | Database Storage (current) | Database Storage (in 1 year) | | Module | Database Storage (current) | Database Storage (in 1 year) |
| ------ | -------------------------- | ---------------------------- | | ------ | -------------------------- | ---------------------------- |
| Runes | 10 GB | 150 GB | | Runes | 10 GB | 150 GB |
#### 4. Prepare `config.yaml` file. #### 4. Prepare `config.yaml` 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