Compare commits
No commits in common. "master" and "v1.0.0" have entirely different histories.
|
@ -10,7 +10,7 @@ jobs:
|
|||
uses: http://${{secrets.ACTION_ACCESS_GIT}}@git.lovezsh.com/actions/checkout@v4
|
||||
|
||||
- name: 设置go环境
|
||||
uses: https://${{secrets.ACTION_ACCESS_GIT}}@git.lovezsh.com/actions/setup-go@v5
|
||||
uses: https://github.com/actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.22.4"
|
||||
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
bin
|
||||
.swap
|
||||
.vscode
|
11
Dockerfile
11
Dockerfile
|
@ -1,11 +0,0 @@
|
|||
FROM golang:1.22.4-alpine3.20 as builder
|
||||
|
||||
WORKDIR /builder
|
||||
COPY . .
|
||||
RUN GOPROXY=https://goproxy.cn CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o nip cmd/main.go
|
||||
|
||||
|
||||
FROM alpine:3.20
|
||||
WORKDIR /app
|
||||
COPY --from=builder /builder/nip .
|
||||
ENTRYPOINT [ "/app/nip" ]
|
Loading…
Reference in New Issue