24 lines
466 B
Docker
24 lines
466 B
Docker
FROM golang:1.13 as builder
|
|
|
|
WORKDIR /go/src/github.com/sneak/feta
|
|
COPY . .
|
|
|
|
RUN make build
|
|
|
|
WORKDIR /go
|
|
RUN tar cvfz go-src.tgz src && du -sh *
|
|
|
|
# this container doesn't do anything except hold the build artifact
|
|
# and make sure it compiles.
|
|
|
|
FROM alpine
|
|
|
|
COPY --from=builder /go/src/github.com/sneak/feta/feta /bin/feta
|
|
|
|
# put the source in there too for safekeeping
|
|
COPY --from=builder /go/go-src.tgz /usr/local/src/go-src.tgz
|
|
|
|
CMD /bin/feta
|
|
|
|
# FIXME add testing
|