Something went wrong. Try again.
A lightweight home network monitor with a live dashboard for latency, packet loss, jitter, DNS & bandwidth. Runs on Pi, Docker, or any mach…
Something went wrong. Try again.
12345678910111213141516171819202122232425262728# --- Build stage ---FROM golang:1.25-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o netmon ./cmd/netmon
# --- Runtime stage ---FROM alpine:3.21
# ca-certificates for HTTPS speed testsRUN apk add --no-cache ca-certificates
# Store database in /data so it can be mounted as a volumeWORKDIR /data
COPY --from=builder /app/netmon /usr/local/bin/netmon
EXPOSE 8080VOLUME ["/data"]
CMD ["netmon"]