-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
25 lines (21 loc) · 940 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM alpine:3.10.1
ENV VEGETA_VERSION 12.8.4
LABEL \
maintainer="Peter Evans <[email protected]>" \
org.opencontainers.image.title="vegeta" \
org.opencontainers.image.description="Docker image for the Vegeta HTTP load testing tool." \
org.opencontainers.image.authors="Peter Evans <[email protected]>" \
org.opencontainers.image.url="https://github.com/peter-evans/vegeta-docker" \
org.opencontainers.image.vendor="https://peterevans.dev" \
org.opencontainers.image.licenses="MIT" \
app.tag="vegeta$VEGETA_VERSION"
RUN set -ex \
&& apk add --no-cache ca-certificates jq \
&& apk add --no-cache --virtual .build-deps \
openssl \
&& wget -q "https://github.com/tsenart/vegeta/releases/download/v${VEGETA_VERSION}/vegeta_${VEGETA_VERSION}_linux_amd64.tar.gz" -O /tmp/vegeta.tar.gz \
&& cd bin \
&& tar xzf /tmp/vegeta.tar.gz \
&& rm /tmp/vegeta.tar.gz \
&& apk del .build-deps
CMD [ "/bin/vegeta", "-help" ]