From da802f30034bbf587f66acfb7ac2e66af99a04f0 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Fri, 25 Oct 2019 09:38:45 -0700 Subject: [PATCH] add source to image --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 916b263..35e0c4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,8 @@ COPY . . RUN go get -v && make build +WORKDIR /go +RUN tar -c src | bzip2 > go-src.tbz2 # this container doesn't do anything except hold the build artifact # and make sure it compiles. @@ -12,6 +14,9 @@ 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 + CMD /bin/fediverse-archive # FIXME add testing