diff --git a/Dockerfile b/Dockerfile index 6e860bc..5407dc8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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