From 055abf814992cbc5fb33c5f3c73c512de82782cf Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Fri, 25 Oct 2019 09:50:32 -0700 Subject: [PATCH] update dockerfile to save source code --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 35e0c4c..043e773 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,8 @@ COPY . . RUN go get -v && make build WORKDIR /go -RUN tar -c src | bzip2 > go-src.tbz2 +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. @@ -15,7 +16,7 @@ FROM alpine COPY --from=builder /go/src/github.com/sneak/fediverse-archive/fediverse-archive /bin/fediverse-archive # put the source in there too for safekeeping -COPY --from=builder /go/go-src.tbz2 /usr/local/src/go-src.tbz2 +COPY --from=builder /go/go-src.tgz /usr/local/src/go-src.tgz CMD /bin/fediverse-archive