Skip to content

Commit

Permalink
fix: ensure default helm cache is writable
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
  • Loading branch information
TylerGillson committed Feb 12, 2024
1 parent 4b25d79 commit 85b3286
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ COPY pkg/ pkg/
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/main.go

RUN chmod 777 /etc /etc/ssl && chmod -R 777 /etc/ssl/certs && \
mkdir /charts && chmod -R 777 /charts
mkdir /.cache /charts && chmod -R 777 /.cache /charts

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

USER 65532:65532
Expand Down

0 comments on commit 85b3286

Please sign in to comment.