-
Notifications
You must be signed in to change notification settings - Fork 398
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 752 Bytes
/
Dockerfile
File metadata and controls
35 lines (28 loc) · 752 Bytes
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
ARG OS_VER=20.04
ARG OS_IMAGE=ubuntu
# build stage
FROM ${OS_IMAGE}:${OS_VER} AS builder
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install -y \
git \
build-essential \
autoconf automake autotools-dev \
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists
ARG SIEGE_VER=v4.1.5
ARG SIEGE_REPO=https://github.com/JoeDog/siege.git
WORKDIR /tmp
RUN git clone $SIEGE_REPO siege \
&& cd siege \
&& git checkout $SIEGE_VER \
&& utils/bootstrap \
&& ./configure \
&& make \
&& make install
# run stage
FROM ${OS_IMAGE}:${OS_VER}
COPY --from=builder /usr/local/ /usr/local/
RUN echo "/usr/local/lib64" >> /etc/ld.so.conf.d/all-libs.conf && ldconfig
ENTRYPOINT ["siege"]