-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (33 loc) · 1021 Bytes
/
Dockerfile
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 debian:stable-slim as builder
ARG VERSION="v4.0.4"
ENV TARGET_URL=""
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get --no-install-recommends -yq install \
curl \
openssl \
libcurl4-openssl-dev \
ca-certificates \
build-essential \
tar \
automake \
autoconf \
zlib1g-dev && \
curl -o siege.tar.gz -sSL https://github.com/JoeDog/siege/archive/${VERSION}.tar.gz && \
tar -xf siege.tar.gz && \
cd siege-${VERSION#"v"} && \
./utils/bootstrap && \
./configure && \
make && \
make install && \
cd .. && \
rm -rf siege-${VERSION#"v"} && \
rm -rf siege.tar.gz && \
apt-get -yq clean && \
apt-get -yq autoclean && \
apt-get -yq remove automake autoconf curl zlib1g-dev && \
apt-get -yq autoremove && \
rm -rf /var/lib/apt/lists
FROM debian:stable-slim
COPY --from=builder /usr/local/bin/siege /usr/local/bin
COPY --from=builder /usr/local/etc/siegerc /usr/local/etc