Skip to content

Commit f58423b

Browse files
author
Rui Yang
committed
add bash and rm cmd
its needed for testflight test intercept_shell_test Signed-off-by: Rui Yang <[email protected]>
1 parent 9387e75 commit f58423b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ RUN go build -o /assets/in ./cmd/in
1212
RUN go build -o /assets/out ./cmd/out
1313
RUN go build -o /assets/check ./cmd/check
1414

15+
FROM paketobuildpacks/build-jammy-base as bash-builder
16+
USER root
17+
RUN apt-get -y update && apt-get -y install bash-static
1518
# there are no tests, but all resources must have a 'tests' target, so just
1619
# no-op
1720
FROM scratch AS tests
@@ -31,6 +34,8 @@ COPY --from=busybox /bin/find /bin/
3134
COPY --from=busybox /bin/mkfifo /bin/
3235
COPY --from=busybox /bin/sed /bin/
3336
COPY --from=busybox /bin/wc /bin/
37+
COPY --from=busybox /bin/rm /bin/
38+
COPY --from=bash-builder /bin/bash-static /bin/bash
3439

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

0 commit comments

Comments
 (0)