Skip to content

Commit

Permalink
[docker] fix dockerfile for kaniko (#19865)
Browse files Browse the repository at this point in the history
## 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:
  • Loading branch information
pei-mysten authored Oct 15, 2024
1 parent 8aac6c2 commit 6b23159
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/sui-services/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b23159

Please sign in to comment.