Skip to content
This repository was archived by the owner on Jun 8, 2025. It is now read-only.

Commit 28b64f5

Browse files
committed
updated Dockerfile
1 parent e7e6ef4 commit 28b64f5

File tree

5 files changed

+13
-38
lines changed

5 files changed

+13
-38
lines changed

.dockerignore

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
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/

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jobs:
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

.gitignore

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
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

Dockerfile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
1-
FROM golang:1.23.1 AS builder
1+
FROM golang:1.23.4 AS builder
22

3-
RUN mkdir -p /app
43
WORKDIR /app
54

6-
COPY go.mod .
7-
COPY go.sum .
8-
5+
COPY go.mod go.sum ./
96
RUN go mod download
107

118
COPY . .
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

1714
WORKDIR /app
1815

19-
COPY --from=builder /app/app .
16+
COPY --from=builder /app/server .
2017

21-
CMD ["/app/app"]
18+
CMD ["/app/server"]

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The MIT License (MIT)
22

3-
Copyright © `2023` `Chandan <contact@chandan.cc>`
3+
Copyright © `2024` `Chandan <contact@chandan.cc>`
44

55
Permission is hereby granted, free of charge, to any person
66
obtaining a copy of this software and associated documentation

0 commit comments

Comments
 (0)