mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
5d0120ee28
* add Dockerfile and Makefile tasks to build statusd-prune docker image * add image ENTRYPOINT * set default CMD to statusd-prune
18 lines
527 B
Plaintext
18 lines
527 B
Plaintext
# Build status-go in a Go builder container
|
|
FROM golang:1.10-alpine as builder
|
|
|
|
RUN apk add --no-cache make gcc musl-dev linux-headers
|
|
|
|
RUN mkdir -p /go/src/github.com/status-im/status-go
|
|
ADD . /go/src/github.com/status-im/status-go
|
|
RUN cd /go/src/github.com/status-im/status-go && make statusd-prune
|
|
|
|
# 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/statusd-prune /usr/local/bin/
|
|
|
|
CMD ["statusd-prune"]
|