Skip to content

Commit 592d26f

Browse files
authored
Merge pull request #1 from commitdev/add-additional-utils
Add nc, curl, ca-certs, siege, etc. to image
2 parents 4086b6a + 98d29b8 commit 592d26f

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 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+
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)