Skip to content

Commit

Permalink
add bash and rm cmd
Browse files Browse the repository at this point in the history
its needed for testflight test intercept_shell_test

Signed-off-by: Rui Yang <ruiya@vmware.com>
  • Loading branch information
Rui Yang committed Jun 6, 2023
1 parent 9387e75 commit f58423b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Expand Up @@ -12,6 +12,9 @@ RUN go build -o /assets/in ./cmd/in
RUN go build -o /assets/out ./cmd/out
RUN go build -o /assets/check ./cmd/check

FROM paketobuildpacks/build-jammy-base as bash-builder
USER root
RUN apt-get -y update && apt-get -y install bash-static
# there are no tests, but all resources must have a 'tests' target, so just
# no-op
FROM scratch AS tests
Expand All @@ -31,6 +34,8 @@ COPY --from=busybox /bin/find /bin/
COPY --from=busybox /bin/mkfifo /bin/
COPY --from=busybox /bin/sed /bin/
COPY --from=busybox /bin/wc /bin/
COPY --from=busybox /bin/rm /bin/
COPY --from=bash-builder /bin/bash-static /bin/bash

COPY --from=builder assets/ /opt/resource/
RUN chmod +x /opt/resource/*

0 comments on commit f58423b

Please sign in to comment.