From f1dc0d8fec7a2032d3af423f9cfb8cab850f0f9a Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Thu, 24 Sep 2020 22:18:04 +0800 Subject: Dockerfile: fix build --- Dockerfile | 2 +- Dockerfile.alltools | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2f4918367..158aef970 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.12-alpine as builder +FROM golang:alpine as builder RUN apk add --no-cache make gcc musl-dev linux-headers g++ gmp-dev pkgconfig diff --git a/Dockerfile.alltools b/Dockerfile.alltools index 6a55c7717..f22417e64 100644 --- a/Dockerfile.alltools +++ b/Dockerfile.alltools @@ -1,5 +1,5 @@ # Build Geth in a stock Go builder container -FROM golang:1.12-alpine as builder +FROM golang:alpine as builder RUN apk add --no-cache make gcc musl-dev linux-headers g++ gmp-dev pkgconfig @@ -9,7 +9,7 @@ RUN cd /dexon && make clean && DOCKER=alpine make all # Pull all binaries into a second stage deploy alpine container FROM alpine:latest -RUN apk add --no-cache gmp +RUN apk add --no-cache gmp libstdc++ COPY --from=builder /dexon/build/bin/* /usr/local/bin/ -- cgit