mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
29 lines
620 B
Docker
29 lines
620 B
Docker
FROM golang:1.15-alpine3.12 as builder
|
|
|
|
ARG git_commit
|
|
ENV GIT_COMMIT=$git_commit
|
|
|
|
ARG git_branch
|
|
ENV GIT_BRANCH=$git_branch
|
|
|
|
# for linters to avoid warnings. we won't use linters in Docker anyway
|
|
ENV LATEST_COMMIT="undefined"
|
|
|
|
RUN apk --no-cache add make gcc g++ linux-headers git bash ca-certificates libgcc libstdc++
|
|
|
|
WORKDIR /app
|
|
|
|
# next 2 lines helping utilize docker cache
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
ADD . .
|
|
RUN make all
|
|
|
|
FROM alpine:3.12
|
|
|
|
RUN apk add --no-cache ca-certificates libgcc libstdc++
|
|
COPY --from=builder /app/build/bin/* /usr/local/bin/
|
|
|
|
EXPOSE 8545 8546 30303 30303/udp 8080 9090 6060
|