Skip to content

Commit 4e2d08c

Browse files
committed
Add nc, curl, ca-certs, siege, etc. to image
1 parent 4086b6a commit 4e2d08c

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

Dockerfile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1+
FROM alpine:3.12 AS build
2+
3+
ENV VERSION=3.1.4
4+
5+
RUN apk update \
6+
&& apk add curl g++ make \
7+
&& curl http://download.joedog.org/siege/siege-$VERSION.tar.gz > siege-$VERSION.tar.gz \
8+
&& tar -xf siege-${VERSION}.tar.gz \
9+
&& cd siege-${VERSION} \
10+
&& ./configure \
11+
&& make install
12+
113
FROM alpine:3.12
214

3-
## Includes postgresql and mysql (CLIENT ONLY)
4-
RUN apk add --no-cache mysql-client postgresql-client
15+
COPY --from=build /usr/local/bin/siege /usr/local/bin/siege.config /usr/local/bin/
16+
RUN apk add --no-cache \
17+
mysql-client postgresql-client curl netcat-openbsd net-tools ca-certificates \
18+
&& rm -rf /var/cache/apk/* \
19+
siege.config
20+

0 commit comments

Comments
 (0)