mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
We could minimize the docker image final size using scratch image
9 lines
277 B
Docker
9 lines
277 B
Docker
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
|
|
|
|
FROM scratch
|
|
COPY --from=builder /goreplay .
|
|
ENTRYPOINT ["./goreplay"]
|