File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ target
2+ .git
3+ .github
4+ tests
5+ * .wasm
Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1
2+ FROM rust:1.85-bookworm AS builder
3+
4+ WORKDIR /app
5+ COPY Cargo.toml ./
6+ COPY src ./src
7+
8+ RUN cargo build --release
9+
10+ FROM debian:bookworm-slim
11+
12+ RUN apt-get update \
13+ && apt-get install -y --no-install-recommends ca-certificates \
14+ && rm -rf /var/lib/apt/lists/*
15+
16+ COPY --from=builder /app/target/release/soroban-debug /usr/local/bin/soroban-debug
17+
18+ WORKDIR /contracts
19+ ENV RUST_LOG=soroban_debugger=info
20+ ENTRYPOINT ["soroban-debug" ]
Original file line number Diff line number Diff line change @@ -303,4 +303,30 @@ at your option.
303303
304304## Acknowledgments
305305
306- Built for the Stellar ecosystem to improve the Soroban smart contract development experience.
306+ Built for the Stellar ecosystem to improve the Soroban smart contract development experience.
307+
308+ ## Docker
309+
310+ ### Build Locally
311+
312+ ``` bash
313+ docker build -t soroban-debugger:local .
314+ ```
315+
316+ ### Run with a Mounted WASM
317+
318+ ``` bash
319+ docker run --rm -v " $( pwd) :/contracts" ghcr.io/your-org/soroban-debug run --contract /contracts/token.wasm --function transfer
320+ ```
321+
322+ ### Interactive Mode (TTY)
323+
324+ ``` bash
325+ docker run --rm -it -v " $( pwd) :/contracts" ghcr.io/your-org/soroban-debug interactive --contract /contracts/token.wasm
326+ ```
327+
328+ ### Docker Compose
329+
330+ ``` bash
331+ docker compose run --rm soroban-debug run --contract /contracts/token.wasm --function transfer
332+ ```
Original file line number Diff line number Diff line change 1+ services :
2+ soroban-debug :
3+ image : ghcr.io/your-org/soroban-debug:latest
4+ build : .
5+ working_dir : /contracts
6+ volumes :
7+ - ./:/contracts
8+ stdin_open : true
9+ tty : true
You can’t perform that action at this time.
0 commit comments