2018-05-18 13:43:07 +00:00
|
|
|
FROM golang:1.10-alpine as builder
|
|
|
|
|
2018-08-24 10:25:07 +00:00
|
|
|
RUN apk add --no-cache make gcc musl-dev linux-headers git
|
2018-05-18 13:43:07 +00:00
|
|
|
|
2018-08-24 10:25:07 +00:00
|
|
|
ARG build_tags
|
|
|
|
ARG build_flags
|
2018-05-18 13:43:07 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /go/src/github.com/status-im/status-go
|
|
|
|
ADD . /go/src/github.com/status-im/status-go
|
2018-08-24 10:25:07 +00:00
|
|
|
RUN cd /go/src/github.com/status-im/status-go && \
|
|
|
|
make bootnode \
|
|
|
|
BUILD_TAGS="$build_tags" \
|
|
|
|
BUILD_FLAGS="$build_flags"
|
2018-05-18 13:43:07 +00:00
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
|
2018-08-24 10:25:07 +00:00
|
|
|
LABEL maintainer="support@status.im"
|
|
|
|
LABEL source="https://github.com/status-im/status-go"
|
|
|
|
LABEL description="bootnode is an Ethereum bootnode with patched Discovery V5."
|
|
|
|
|
2018-05-18 13:43:07 +00:00
|
|
|
RUN apk add --no-cache ca-certificates bash
|
|
|
|
|
|
|
|
COPY --from=builder /go/src/github.com/status-im/status-go/build/bin/bootnode /usr/local/bin/
|
2018-08-24 10:25:07 +00:00
|
|
|
ENTRYPOINT /usr/local/bin/bootnode
|