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