Using scratch image to execute goreplay (#619)

We could minimize the docker image final size using scratch image
This commit is contained in:
Miquel B
2019-02-16 09:17:11 +01:00
committed by Leonid Bugaev
parent 476ed808f9
commit bf98a636c4
+6 -3
View File
@@ -1,5 +1,8 @@
FROM alpine:3.6
RUN apk update && apk add ca-certificates && update-ca-certificates && apk add openssl
FROM alpine:latest as builder
RUN apk add --no-cache ca-certificates openssl
RUN wget https://github.com/buger/goreplay/releases/download/v0.16.1/gor_0.16.1_x64.tar.gz -O gor.tar.gz
RUN tar xzf gor.tar.gz
ENTRYPOINT ["./goreplay"]
FROM scratch
COPY --from=builder /goreplay .
ENTRYPOINT ["./goreplay"]