merp/Dockerfile
2019-11-08 04:35:27 -08:00

22 lines
437 B
Docker

FROM golang:1.13 as builder
WORKDIR /go/src/github.com/sneak/merp
COPY . .
RUN go get -v && make build
WORKDIR /go
RUN tar cvfz go-src.tgz src && du -sh *
FROM alpine
COPY --from=builder /go/src/github.com/sneak/merp/cmd/merp/merp /bin/merp
# put the source in there too for safekeeping
COPY --from=builder /go/go-src.tgz /usr/local/src/go-src.tgz
#COPY --from=builder /go/src /usr/local/src/go
CMD /bin/merp
# FIXME add testing