Skip to content

Commit

Permalink
Merge pull request #49 from equinor/fix-missing-shell
Browse files Browse the repository at this point in the history
fix-missing-shell
  • Loading branch information
satr authored Jul 17, 2024
2 parents 54c3621 + 21e6824 commit 140a08a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ RUN go build -ldflags="-s -w" -o /build/radix-cluster-cleanup

COPY ./run_cluster_cleanup.sh .

#Get busybox shell for distroless
FROM gcr.io/distroless/base:debug AS debug
# Final stage, ref https://github.com/GoogleContainerTools/distroless/blob/main/base/README.md for distroless
FROM gcr.io/distroless/static
WORKDIR /app
COPY --from=builder /build/radix-cluster-cleanup .
COPY --from=builder /src/run_cluster_cleanup.sh .
COPY --from=debug /busybox/sh /bin
USER 1000
ENTRYPOINT ["/app/run_cluster_cleanup.sh"]
ENTRYPOINT ["/app/run_cluster_cleanup.sh"]
4 changes: 2 additions & 2 deletions charts/radix-cluster-cleanup/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: 1.0.12
appVersion: 1.0.13
description: A Helm chart for Kubernetes
name: radix-cluster-cleanup
version: 1.0.13
version: 1.0.14

0 comments on commit 140a08a

Please sign in to comment.