Skip to content

Commit 85b3286

Browse files
committed
fix: ensure default helm cache is writable
Signed-off-by: Tyler Gillson <[email protected]>
1 parent 4b25d79 commit 85b3286

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ COPY pkg/ pkg/
3232
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/main.go
3333

3434
RUN chmod 777 /etc /etc/ssl && chmod -R 777 /etc/ssl/certs && \
35-
mkdir /charts && chmod -R 777 /charts
35+
mkdir /.cache /charts && chmod -R 777 /.cache /charts
3636

3737
# Use distroless as minimal base image to package the manager binary
3838
# Refer to https://github.com/GoogleContainerTools/distroless for more details
@@ -42,6 +42,7 @@ WORKDIR /
4242
COPY --from=builder /workspace/manager .
4343
COPY --from=builder /workspace/helm .
4444
COPY --from=builder --chown=65532:65532 /etc /etc
45+
COPY --from=builder --chown=65532:65532 /.cache /.cache
4546
COPY --from=builder --chown=65532:65532 /charts /charts
4647

4748
USER 65532:65532

0 commit comments

Comments
 (0)