Skip to content

Commit 55a27d1

Browse files
authored
update docker build for latest make target (#371)
1 parent b53824d commit 55a27d1

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
target/
2+
.soroban/

cmd/soroban-rpc/docker/Dockerfile

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
FROM golang:1.19.1 as build
2+
ARG RUST_TOOLCHAIN_VERSION=stable
23

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
65

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
722

823
FROM ubuntu:20.04
924
ARG STELLAR_CORE_VERSION

0 commit comments

Comments
 (0)