dockerfile seems to be decent now

This commit is contained in:
Jeffrey Paul 2019-10-25 09:48:34 -07:00
parent 54644e29b7
commit 9e9f49f139
1 changed files with 4 additions and 1 deletions

View File

@ -5,13 +5,16 @@ 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/merp /bin/merp
# put the source in there too for safekeeping
COPY --from=builder /go/src /usr/local/src/go
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