-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.small
38 lines (36 loc) · 947 Bytes
/
Dockerfile.small
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
26
27
28
29
30
31
32
33
34
35
36
37
38
#FROM golang:alpine as go-builder
#RUN apk --update add git \
#&& go get -u github.com/rakyll/hey \
#&& go get -u github.com/codesenberg/bombardier \
#&& go get github.com/parkghost/gohttpbench \
#&& go build -o gb github.com/parkghost/gohttpbench
FROM alpine
RUN apk add --no-cache --update bash \
iputils \
curl \
tcpdump \
iftop \
mtr \
apache2-utils \
netcat-openbsd \
nmap-nping \
nmap bind-tools \
python3 \
py3-pip \
ca-certificates \
&& pip3 install --upgrade pip \
&& pip3 install \
httpie \
httpie-unixsocket \
httping \
httpstat \
&& rm -rf /var/cache/apk/* \
&& adduser -D -u 65500 nettools
RUN curl -o /usr/sbin/gosu -Ls https://github.com/tianon/gosu/releases/download/1.14/gosu-amd64 \
&& chmod 755 /usr/sbin/gosu
#COPY --from=go-builder /go/bin/hey /usr/local/bin
#COPY --from=go-builder /go/bin/bombardier /usr/local/bin
#COPY --from=go-builder /go/bin/gohttpbench /usr/local/bin/goab
COPY help /help
USER 65500
CMD ["/help"]