From 9e9f49f139ded3d0c525c021e3878c18738e5309 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Fri, 25 Oct 2019 09:48:34 -0700 Subject: [PATCH] dockerfile seems to be decent now --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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