diff --git a/Dockerfile b/Dockerfile index ff41733..915e2a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,10 +30,7 @@ ARG TARGETARCH # Build the function binary. The type=target mount tells Docker to mount the # current directory read-only in the WORKDIR. The type=cache mount tells Docker # to cache the Go modules cache across builds. -RUN --mount=target=. \ - --mount=type=cache,target=/go/pkg/mod \ - --mount=type=cache,target=/root/.cache/go-build \ - GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -o kcl-controller cmd/main.go +RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -o kcl-controller cmd/main.go FROM ${BASE_IMAGE} as image RUN apt-get update && apt-get install -y ca-certificates tini @@ -41,6 +38,4 @@ COPY --from=build /src/kcl-controller /usr/local/bin/ # RUN addgroup -S controller && adduser -S controller -G controller RUN groupadd controller && useradd -g controller controller -USER controller - ENTRYPOINT [ "/usr/bin/tini", "--", "kcl-controller" ] diff --git a/README-zh.md b/README-zh.md index 50d266a..df0c99f 100644 --- a/README-zh.md +++ b/README-zh.md @@ -122,7 +122,3 @@ nginx-deployment-1 1/1 1 0 4s ``` 可以看到,kcl-controller 根据仓库中的 KCL 程序,创建了一个 nginx-deployment-1。 - -# 未来工作 - -- 添加 KCL OCI Registry Controller,用于支持存储在 OCI 仓库中的 KCL 程序。