-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: jackyu <[email protected]>
- Loading branch information
1 parent
cdbe671
commit c12ae53
Showing
1 changed file
with
2 additions
and
3 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 |
---|---|---|
|
@@ -19,13 +19,12 @@ RUN CGO_ENABLED=0 GO111MODULE=on go build -a -o jwt cmd/tools/jwt/jwt_cmd.go | |
|
||
FROM golang:1.17 as downloader | ||
RUN go install github.com/linuxsuren/[email protected] | ||
RUN http-downloader install kubesphere-sigs/[email protected].60 | ||
RUN http-downloader install kubesphere-sigs/[email protected].70 | ||
|
||
# Use distroless as minimal base image to package the manager binary | ||
# Refer to https://github.com/GoogleContainerTools/distroless for more details | ||
FROM gcr.io/distroless/static:nonroot | ||
WORKDIR / | ||
COPY --from=builder /workspace/jwt . | ||
COPY --from=builder /workspace/jwt /jwt | ||
COPY --from=downloader /usr/local/bin/ks /usr/local/bin/ks | ||
USER nonroot:nonroot | ||
|
||
|