-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (46 loc) · 1.8 KB
/
Dockerfile
File metadata and controls
51 lines (46 loc) · 1.8 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM --platform=$BUILDPLATFORM debian:bookworm-slim AS builder
ARG SIEGE_VERSION=4.1.7
# Install and build Siege from source
RUN set -ex && \
mkdir -p /app && \
cd /app && \
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
automake \
libssl-dev \
zlib1g-dev \
curl \
ca-certificates \
git \
libssl3 && \
git clone --depth 1 --branch v${SIEGE_VERSION} https://github.com/JoeDog/siege.git && \
cd siege && \
./utils/bootstrap && \
./configure && \
make && \
make install
FROM debian:bookworm-slim
COPY --from=builder /app/siege/src/siege /usr/local/bin/siege
COPY --from=builder /app/siege/utils/siege.config /usr/local/bin/siege.config
COPY --from=builder /app/siege/utils/siege2csv.pl /usr/local/bin/siege2csv
COPY --from=builder /app/siege/utils/bombardment /usr/local/bin/bombardment
COPY --from=builder /app/siege/doc/siegerc /etc/siegerc
COPY --from=builder /app/siege/COPYING /SIEGE-COPYING
RUN apt-get update && \
apt-get -y upgrade && \
apt-get install -y --no-install-recommends libssl3 ca-certificates zlib1g && \
chmod 0655 /usr/local/bin/siege && \
chmod 0655 /usr/local/bin/siege.config && \
chmod 0655 /usr/local/bin/siege2csv && \
chmod 0655 /usr/local/bin/bombardment && \
chmod 0644 /etc/siegerc
ENTRYPOINT [ "/usr/local/bin/siege" ]
CMD [ "--help" ]
LABEL org.opencontainers.image.vendor="stone" \
org.opencontainers.image.url="https://github.com/JoeDog/siege" \
org.opencontainers.image.source="https://github.com/stone/siege-docker" \
org.opencontainers.image.title="Siege" \
org.opencontainers.image.description="Siege is an open source regression test and benchmark utility" \
org.opencontainers.image.documentation="https://github.com/stone/siege-docker/blob/main/README.md" \
org.opencontainers.image.licenses="gpl-3.0"