File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,12 @@ ARG TARGETARCH
3030# Build the function binary. The type=target mount tells Docker to mount the
3131# current directory read-only in the WORKDIR. The type=cache mount tells Docker
3232# to cache the Go modules cache across builds.
33- RUN --mount=target=. \
34- --mount=type=cache,target=/go/pkg/mod \
35- --mount=type=cache,target=/root/.cache/go-build \
36- GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -o kcl-controller cmd/main.go
33+ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -o kcl-controller cmd/main.go
3734
3835FROM ${BASE_IMAGE} as image
3936RUN apt-get update && apt-get install -y ca-certificates tini
4037COPY --from=build /src/kcl-controller /usr/local/bin/
4138# RUN addgroup -S controller && adduser -S controller -G controller
4239RUN groupadd controller && useradd -g controller controller
4340
44- USER controller
45-
4641ENTRYPOINT [ "/usr/bin/tini" , "--" , "kcl-controller" ]
Original file line number Diff line number Diff line change @@ -122,7 +122,3 @@ nginx-deployment-1 1/1 1 0 4s
122122` ` `
123123
124124可以看到,kcl-controller 根据仓库中的 KCL 程序,创建了一个 nginx-deployment-1。
125-
126- # 未来工作
127-
128- - 添加 KCL OCI Registry Controller,用于支持存储在 OCI 仓库中的 KCL 程序。
You can’t perform that action at this time.
0 commit comments