aboutsummaryrefslogtreecommitdiff
path: root/.github/docker/Dockerfile-backend
blob: 06036e4a8a3d8373b05117470e00614c65222308 (plain) (blame)
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