# Development and test image for ja4sentinel # Based on architecture.yml ci_cd.docker.images.ja4sentinel-dev FROM golang:1.24-alpine # Install build dependencies including libpcap for packet capture RUN apk add --no-cache \ git \ make \ libpcap-dev \ gcc \ musl-dev \ linux-headers # Set working directory WORKDIR /app # Copy go mod files first for better caching COPY go.mod go.sum* ./ # Download dependencies RUN go mod download || true # Copy source code COPY . . # Download dependencies again to ensure all are present RUN go mod tidy # Default command: run tests CMD ["make", "test"]