Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Next
- Report received ICMPv6 error messages (#391, thanks @auerswal)
- Suppress duplicate reports in count mode with -q, --quiet or -Q, --squiet
(#392, thanks @gsnw-sebast and @auerswal)
- Switch to alpine-based multi-stage Docker build to reduce image size and improve build performance
Add OpenContainers-compatible labels (#399)

fping 5.3 (2025-01-02)
======================
Expand Down
28 changes: 18 additions & 10 deletions contrib/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
FROM debian:stable
FROM alpine:3.22.1 AS builder

# Base
RUN apt-get update && apt-get install -y \
build-essential \
RUN apk add --no-cache \
build-base \
automake \
autoconf \
m4

# Add source code
COPY ./ /app

# Compile
WORKDIR /app
RUN autoreconf --install
RUN ./configure && make && make install
ENTRYPOINT ["fping"]
RUN autoreconf --install && ./configure && make

FROM alpine:3.22.1

# OCI annotations
LABEL org.opencontainers.image.title="fping" \
org.opencontainers.image.authors="fping Community" \
org.opencontainers.image.description="High performance ping tool" \
org.opencontainers.image.base.name="docker.io/library/alpine:3.22.1" \
org.opencontainers.image.source="https://github.com/schweikert/fping" \
org.opencontainers.image.documentation="https://fping.org/fping.8.html"

COPY --from=builder /app/src/fping /usr/local/bin/fping

ENTRYPOINT ["fping"]
Loading