-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathDockerfile.debian
56 lines (45 loc) · 1.21 KB
/
Dockerfile.debian
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
52
53
54
55
56
FROM debian:bookworm AS build
# Ping with HTTP requests, see http://www.vanheusden.com/httping/
# built directly from master
LABEL maintainer="Bret Fisher <[email protected]>"
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
gcc \
make \
cmake \
gettext \
git \
libncurses-dev \
libssl-dev \
libfftw3-dev \
libfftw3-bin \
libfftw3-double3 \
libgomp1 \
openssl \
apt-transport-https \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /source
COPY source .
RUN make
# to prevent image bloat, lets do a multi-stage build and only copy the binary needed
FROM debian:bookworm-slim AS release
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
libfftw3-bin \
libfftw3-dev \
libfftw3-double3 \
libgomp1 \
libncurses-dev \
openssl \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /source/httping /usr/local/bin/
ENV TERM=xterm-256color
# add -Y for nice color output!
ENTRYPOINT ["httping", "-Y"]
CMD ["--version"]