mirror of
https://github.com/alexgo-io/gaze-brc20-indexer.git
synced 2026-01-12 14:34:54 +08:00
chore: use go 1.24.1 to build
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user