Skip to content

Commit

Permalink
update docker build for latest make target (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreuland authored Feb 1, 2023
1 parent b53824d commit 55a27d1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target/
.soroban/
21 changes: 18 additions & 3 deletions cmd/soroban-rpc/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
FROM golang:1.19.1 as build
ARG RUST_TOOLCHAIN_VERSION=stable

ADD . /src/soroban-rpc
WORKDIR /src/soroban-rpc
RUN go build -o /bin/soroban-rpc ./cmd/soroban-rpc
WORKDIR /go/src/github.com/stellar/soroban-tools

ADD . ./

RUN git config --global --add safe.directory "/go/src/github.com/stellar/soroban-tools"

ENV CARGO_HOME=/rust/.cargo
ENV RUSTUP_HOME=/rust/.rust
ENV PATH="/usr/local/go/bin:$CARGO_HOME/bin:${PATH}"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get clean

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUST_TOOLCHAIN_VERSION

RUN make build-soroban-rpc
RUN mv soroban-rpc /bin/soroban-rpc

FROM ubuntu:20.04
ARG STELLAR_CORE_VERSION
Expand Down

0 comments on commit 55a27d1

Please sign in to comment.