merp/Dockerfile

22 lines
428 B
Docker
Raw Permalink Normal View History

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
2019-10-25 16:48:34 +00:00
WORKDIR /go
RUN tar cvfz go-src.tgz src && du -sh *
2019-10-03 19:35:33 +00:00
FROM alpine
2019-11-11 23:11:38 +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
2019-10-25 16:48:34 +00:00
COPY --from=builder /go/go-src.tgz /usr/local/src/go-src.tgz
#COPY --from=builder /go/src /usr/local/src/go
2019-10-25 16:25:17 +00:00
2019-10-29 17:12:59 +00:00
CMD /bin/merp
2019-10-03 19:35:33 +00:00
# FIXME add testing