-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Upgrade API server dependencies (#105)
1. Upgrade to go 1.23 2. Upgrade to Higress 2.0.1 3. Upgrade various 3rd party dependencies
- Loading branch information
Showing
6 changed files
with
278 additions
and
407 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,20 +1,20 @@ | ||
FROM golang:1.21.5 as builder | ||
|
||
ARG GOPROXY | ||
ENV GOPROXY=${GOPROXY} | ||
|
||
WORKDIR /workspace | ||
|
||
# Copy the go source | ||
COPY . ./ | ||
|
||
# Build | ||
RUN go mod tidy | ||
RUN CGO_ENABLED=0 GOOS=linux go build -a -o apiserver main.go | ||
|
||
# Use distroless as minimal base image to package the manager binary | ||
# Refer to https://github.com/GoogleContainerTools/distroless for more details | ||
FROM alpine/curl | ||
WORKDIR / | ||
COPY --from=builder /workspace/apiserver . | ||
ENTRYPOINT ["/apiserver"] | ||
FROM golang:1.23.2 as builder | ||
|
||
ARG GOPROXY | ||
ENV GOPROXY=${GOPROXY} | ||
|
||
WORKDIR /workspace | ||
|
||
# Copy the go source | ||
COPY . ./ | ||
|
||
# Build | ||
RUN go mod tidy | ||
RUN CGO_ENABLED=0 GOOS=linux go build -a -o apiserver main.go | ||
|
||
# Use distroless as minimal base image to package the manager binary | ||
# Refer to https://github.com/GoogleContainerTools/distroless for more details | ||
FROM alpine/curl | ||
WORKDIR / | ||
COPY --from=builder /workspace/apiserver . | ||
ENTRYPOINT ["/apiserver"] |
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.