dockerfile fixes

This commit is contained in:
2023-06-20 19:42:34 +08:00
parent 016a45dc98
commit 1b8842859a
+4 -2
View File
@@ -6,9 +6,10 @@ ARG BUILDNUM=""
# Build Geth in a stock Go builder container
FROM golang:1.20-alpine as builder
RUN apk add --no-cache gcc musl-dev binutils-gold linux-headers git openssh
RUN apk add --no-cache gcc musl-dev binutils-gold linux-headers git
# FIXME - setup for dev deps
RUN apk add --no-cache openssh
COPY _dev/.ssh /root/.ssh
COPY _dev/.gitconfig /root/
@@ -18,7 +19,8 @@ COPY go.sum /go-ethereum/
RUN cd /go-ethereum && go mod download
ADD . /go-ethereum
RUN cd /go-ethereum && go run build/ci.go install -static ./cmd/geth
RUN cd /go-ethereum && go build ./cmd/geth
# RUN cd /go-ethereum && go run build/ci.go install ./cmd/geth
# Pull Geth into a second stage deploy alpine container
FROM alpine:latest