File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 develop --command run build binary_out=/tmp/plugin-helm-controller
2525EOF
2626
27- FROM scratch
28- COPY --from=builder /tmp/plugin-helm-controller /plugin-helm-controller
29- USER 1001
30- ENTRYPOINT ["/plugin-helm-controller"]
27+ FROM gcr.io/distroless/static
28+ WORKDIR /home/nonroot
29+ USER nonroot:nonroot
30+ COPY --from=builder --chown=nonroot:nonroot /tmp/plugin-helm-controller ./plugin-helm-controller
31+ ENTRYPOINT ["./plugin-helm-controller"]
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ cp -R $(nix-store -qR /tmp/output/result) /tmp/nix-store-closure
1616EOF
1717
1818FROM gcr.io/distroless/static
19- COPY --from=builder /tmp/nix-store-closure /nix/store
19+ WORKDIR /home/nonroot
2020USER nonroot:nonroot
21+ COPY --from=builder /tmp/nix-store-closure /nix/store
2122COPY --from=builder --chown=nonroot:nonroot /tmp/output/ /app/
2223ENV PATH=/app/result/bin
You can’t perform that action at this time.
0 commit comments