File tree 2 files changed +20
-3
lines changed
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change
1
+ target /
2
+ .soroban /
Original file line number Diff line number Diff line change 1
1
FROM golang:1.19.1 as build
2
+ ARG RUST_TOOLCHAIN_VERSION=stable
2
3
3
- ADD . /src/soroban-rpc
4
- WORKDIR /src/soroban-rpc
5
- RUN go build -o /bin/soroban-rpc ./cmd/soroban-rpc
4
+ WORKDIR /go/src/github.com/stellar/soroban-tools
6
5
6
+ ADD . ./
7
+
8
+ RUN git config --global --add safe.directory "/go/src/github.com/stellar/soroban-tools"
9
+
10
+ ENV CARGO_HOME=/rust/.cargo
11
+ ENV RUSTUP_HOME=/rust/.rust
12
+ ENV PATH="/usr/local/go/bin:$CARGO_HOME/bin:${PATH}"
13
+ ENV DEBIAN_FRONTEND=noninteractive
14
+ RUN apt-get update
15
+ RUN apt-get install -y build-essential
16
+ RUN apt-get clean
17
+
18
+ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUST_TOOLCHAIN_VERSION
19
+
20
+ RUN make build-soroban-rpc
21
+ RUN mv soroban-rpc /bin/soroban-rpc
7
22
8
23
FROM ubuntu:20.04
9
24
ARG STELLAR_CORE_VERSION
You can’t perform that action at this time.
0 commit comments