diff --git a/Dockerfile b/Dockerfile index 183c362..bde3fad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22 as builder +FROM golang:1.24.1 as builder WORKDIR /app @@ -19,10 +19,9 @@ WORKDIR /app RUN apk --no-cache add ca-certificates tzdata -COPY --from=builder /app/main . -COPY --from=builder /app/modules ./modules +COPY --from=builder /app/main /usr/local/bin/brc20-indexer # 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 -ENTRYPOINT ["/app/main"] +ENTRYPOINT ["brc20-indexer"] diff --git a/README.md b/README.md index a288fe9..1262996 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,9 @@ It comes with a set of APIs for querying historical Runes data. See our [API Ref #### 1. 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. @@ -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. | Module | Database Storage (current) | Database Storage (in 1 year) | | ------ | -------------------------- | ---------------------------- | -| Runes | 10 GB | 150 GB | +| Runes | 10 GB | 150 GB | #### 4. Prepare `config.yaml` file. @@ -113,7 +113,7 @@ services: - 8080:8080 # Expose HTTP server port to host volumes: - "./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