We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b25d79 commit 85b3286Copy full SHA for 85b3286
Dockerfile
@@ -32,7 +32,7 @@ COPY pkg/ pkg/
32
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/main.go
33
34
RUN chmod 777 /etc /etc/ssl && chmod -R 777 /etc/ssl/certs && \
35
- mkdir /charts && chmod -R 777 /charts
+ mkdir /.cache /charts && chmod -R 777 /.cache /charts
36
37
# Use distroless as minimal base image to package the manager binary
38
# Refer to https://github.com/GoogleContainerTools/distroless for more details
@@ -42,6 +42,7 @@ WORKDIR /
42
COPY --from=builder /workspace/manager .
43
COPY --from=builder /workspace/helm .
44
COPY --from=builder --chown=65532:65532 /etc /etc
45
+COPY --from=builder --chown=65532:65532 /.cache /.cache
46
COPY --from=builder --chown=65532:65532 /charts /charts
47
48
USER 65532:65532
0 commit comments