We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4086b6a + 98d29b8 commit 592d26fCopy full SHA for 592d26f
1 file changed
Dockerfile
@@ -1,4 +1,20 @@
1
+FROM alpine:3.12 AS build
2
+
3
+ENV SIEGE_VERSION=3.1.4
4
5
+RUN apk update \
6
+ && apk add curl g++ make \
7
+ && curl http://download.joedog.org/siege/siege-${SIEGE_VERSION}.tar.gz > siege-${SIEGE_VERSION}.tar.gz \
8
+ && tar -xf siege-${SIEGE_VERSION}.tar.gz \
9
+ && cd siege-${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