From e483aeaf208a712021f2f0d4fb10ae11b099efe2 Mon Sep 17 00:00:00 2001 From: pei-mysten <147538877+pei-mysten@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:59:35 -0700 Subject: [PATCH] [docker] fix dockerfile for kaniko (#19865) ## Description kaniko doesn't like `*` wildcard, so have to be a little bit smarter. ## Test plan had a successfully built from kaniko. I pulled it down and inspected manually, binaries are ther --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: - [ ] REST API: --- docker/sui-services/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/sui-services/Dockerfile b/docker/sui-services/Dockerfile index 42dd5eb7018c0..b3cf32fb62d62 100644 --- a/docker/sui-services/Dockerfile +++ b/docker/sui-services/Dockerfile @@ -23,7 +23,9 @@ RUN find /sui/target/release/ -maxdepth 1 -type f -executable -print | xargs cp # Production Image FROM debian:bullseye-slim AS runtime WORKDIR sui -COPY --from=builder /sui/bin/* /usr/local/bin +COPY --from=builder /sui/bin /tmp/sui-bin +RUN find /tmp/sui-bin -maxdepth 1 -type f -executable -print | xargs cp -t /usr/local/bin/ +RUN rm -rf /tmp/sui-bin RUN apt update && apt install -y libpq5 libpq-dev postgresql ARG BUILD_DATE