feta/Dockerfile
sneak b9d23b1e2c
Some checks failed
continuous-integration/drone/push Build is failing
Update 'Dockerfile'
2020-02-05 08:48:53 +00:00

25 lines
499 B
Docker

FROM golang:1.13 as builder
WORKDIR /go/src/git.eeqj.de/sneak/feta
COPY . .
#RUN make lint && make build
RUN make build
WORKDIR /go
RUN tar cfj go-src.tbz2 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/git.eeqj.de/sneak/feta/feta /bin/feta
# put the source in there too for safekeeping
COPY --from=builder /go/go-src.tbz2 /usr/local/src/go-src.tbz2
CMD /bin/feta
# FIXME add testing