Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zkbingo-bx authored Jul 1, 2024
1 parent 31d5d39 commit 7fbda60
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
FROM rust:1.73.0-buster AS builder

RUN wget https://go.dev/dl/go1.19.3.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz
ENV PATH="$PATH:/usr/local/go/bin"
FROM rust:1.79-bookworm AS rust-builder

WORKDIR /build
ADD . .

RUN make geth
RUN cargo build --release

FROM golang:1.22-bookworm AS go-builder

COPY --from=rust-builder /build /build
WORKDIR /build

RUN go run build/ci.go install ./cmd/geth

FROM debian:buster
FROM debian:bookworm
RUN apt-get update -y
RUN apt-get install -y curl
RUN apt-get install -y ca-certificates

WORKDIR /app
COPY --from=builder /build/build/bin/geth .
COPY --from=go-builder /build/build/bin/geth .
Add start.sh start.sh
RUN chmod +x start.sh

Expand Down

0 comments on commit 7fbda60

Please sign in to comment.