add source to image

This commit is contained in:
Jeffrey Paul 2019-10-25 09:38:45 -07:00
parent f16e140cac
commit da802f3003

View File

@ -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