This repository was archived by the owner on Jun 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +13
-38
lines changed
Expand file tree Collapse file tree 5 files changed +13
-38
lines changed Original file line number Diff line number Diff line change 1- * #
2- * .bin
3- * .dat
41* .dll
5- * .dylib
62* .env
73* .exe
8- * .git /
94* .idea /
105* .log
116* .out
12- * .prof
137* .so
14- * bin /
158* build /
9+ * temp /
1610* tmp /
17- * vendor /
18- * ~
19- . #*
20- .DS_Store
11+
12+ * .git /
13+ .github /
2114.gitignore
22- .idea /
23- go.mod.bak
15+ .vscode /
Original file line number Diff line number Diff line change 5050 push : true
5151 tags : |
5252 ghcr.io/${{ secrets.REGISTRY_USERNAME }}/ip-geo-api:latest
53- ghcr.io/${{ secrets.REGISTRY_USERNAME }}/ip-geo-api:${{ steps.short-sha.outputs.sha }}
5453 cache-from : type=local,src=/tmp/.buildx-cache
5554 cache-to : type=local,dest=/tmp/.buildx-cache,mode=max
5655 platforms : linux/amd64,linux/arm64,linux/arm64/v8
Original file line number Diff line number Diff line change 1- * #
2- * .bin
3- * .dat
41* .dll
5- * .dylib
62* .env
73* .exe
8- * .git /
94* .idea /
105* .log
116* .out
12- * .prof
137* .so
14- * bin /
158* build /
9+ * temp /
1610* tmp /
17- * vendor /
18- * ~
19- . #*
20- .DS_Store
21- .gitignore
22- .idea /
23- go.mod.bak
Original file line number Diff line number Diff line change 1- FROM golang:1.23.1 AS builder
1+ FROM golang:1.23.4 AS builder
22
3- RUN mkdir -p /app
43WORKDIR /app
54
6- COPY go.mod .
7- COPY go.sum .
8-
5+ COPY go.mod go.sum ./
96RUN go mod download
107
118COPY . .
129
13- RUN CGO_ENABLED=0 GOOS=linux go build -o app .
10+ RUN CGO_ENABLED=0 GOOS=linux go build -o server .
1411
15- FROM alpine
12+ FROM alpine:latest
1613
1714WORKDIR /app
1815
19- COPY --from=builder /app/app .
16+ COPY --from=builder /app/server .
2017
21- CMD ["/app/app " ]
18+ CMD ["/app/server " ]
Original file line number Diff line number Diff line change 11# The MIT License (MIT)
22
3- Copyright © ` 2023 ` ` Chandan <contact@chandan.cc> `
3+ Copyright © ` 2024 ` ` Chandan <contact@chandan.cc> `
44
55Permission is hereby granted, free of charge, to any person
66obtaining a copy of this software and associated documentation
You can’t perform that action at this time.
0 commit comments