We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4086b6a commit 4e2d08cCopy full SHA for 4e2d08c
1 file changed
Dockerfile
@@ -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
13
FROM alpine:3.12
14
-## Includes postgresql and mysql (CLIENT ONLY)
-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