-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jianwei.wjw
committed
Oct 25, 2024
1 parent
0296ce8
commit b54418a
Showing
6 changed files
with
1,429 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
FROM golang:1.15.3 AS build | ||
FROM golang:1.22.2 AS build | ||
|
||
|
||
WORKDIR /src | ||
COPY . . | ||
RUN go env -w GOPROXY=https://goproxy.cn,direct | ||
RUN STATIC=0 GOOS=linux GOARCH=amd64 LDFLAGS='-extldflags -static -s -w' go build -o main ./cmd/nacos-k8s-sync | ||
|
||
FROM ubuntu:20.04 | ||
FROM ubuntu:24.04 | ||
WORKDIR / | ||
COPY --from=build /src/main /main | ||
CMD ["./main"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.