mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Using scratch image to execute goreplay (#619)
We could minimize the docker image final size using scratch image
This commit is contained in:
+6
-3
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user