1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
FROM golang:1.16 RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -qq \ git \ pkg-config \ libpcap-dev \ libhyperscan-dev WORKDIR /caronte COPY . ./ RUN export VERSION=$(git describe --tags --abbrev=0) && \ go mod download && \ go build -ldflags "-X main.Version=$VERSION" ENTRYPOINT go test -v -race -covermode=atomic