Skip to content

Commit ed4a325

Browse files
committed
chore: update readme and dockerfiles
Signed-off-by: peefy <[email protected]>
1 parent 49b103f commit ed4a325

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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

3835
FROM ${BASE_IMAGE} as image
3936
RUN apt-get update && apt-get install -y ca-certificates tini
4037
COPY --from=build /src/kcl-controller /usr/local/bin/
4138
# RUN addgroup -S controller && adduser -S controller -G controller
4239
RUN groupadd controller && useradd -g controller controller
4340

44-
USER controller
45-
4641
ENTRYPOINT [ "/usr/bin/tini", "--", "kcl-controller" ]

README-zh.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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 程序。

0 commit comments

Comments
 (0)