orangesite/Dockerfile
sneak f6f3e645c8
Some checks failed
continuous-integration/drone/push Build is failing
bamp to go 1.14 like on workstation
2020-03-24 14:39:32 -07:00

25 lines
529 B
Docker

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