2019-10-03 19:35:33 +00:00
|
|
|
FROM golang:1.13 as builder
|
|
|
|
|
2019-10-25 16:25:17 +00:00
|
|
|
WORKDIR /go/src/github.com/sneak/merp
|
2019-10-03 19:35:33 +00:00
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN go get -v && make build
|
|
|
|
|
|
|
|
|
|
|
|
FROM alpine
|
|
|
|
|
2019-10-25 16:25:17 +00:00
|
|
|
COPY --from=builder /go/src/github.com/sneak/merp/merp /bin/merp
|
2019-10-03 19:35:33 +00:00
|
|
|
|
2019-10-25 16:25:17 +00:00
|
|
|
# put the source in there too for safekeeping
|
|
|
|
COPY --from=builder /go/src /usr/local/src/go
|
|
|
|
|
|
|
|
CMD /bin/merp
|
2019-10-03 19:35:33 +00:00
|
|
|
|
|
|
|
# FIXME add testing
|