2018-01-17 21:40:14 +00:00
|
|
|
# Build status-go in a Go builder container
|
2018-01-03 18:50:19 +00:00
|
|
|
FROM golang:1.9-alpine as builder
|
2017-05-12 12:04:32 +00:00
|
|
|
|
2018-01-03 18:50:19 +00:00
|
|
|
RUN apk add --no-cache make gcc musl-dev linux-headers
|
2017-05-12 12:04:32 +00:00
|
|
|
|
2018-01-03 18:50:19 +00:00
|
|
|
RUN mkdir -p /go/src/github.com/status-im/status-go
|
|
|
|
ADD . /go/src/github.com/status-im/status-go
|
2018-01-17 21:40:14 +00:00
|
|
|
RUN cd /go/src/github.com/status-im/status-go && make statusgo
|
2017-05-12 12:04:32 +00:00
|
|
|
|
2018-01-03 18:50:19 +00:00
|
|
|
# Copy the binary to the second image
|
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
RUN apk add --no-cache ca-certificates bash
|
|
|
|
COPY --from=builder /go/src/github.com/status-im/status-go/build/bin/* /usr/local/bin/
|
|
|
|
|
|
|
|
RUN mkdir -p /static/keys
|
|
|
|
COPY --from=builder /go/src/github.com/status-im/status-go/static/keys/* /static/keys/
|
|
|
|
|
|
|
|
# 30304 is used for Discovery v5
|
|
|
|
EXPOSE 8080 8545 30303 30303/udp 30304/udp
|