diff options
Diffstat (limited to '.github/docker/Dockerfile-backend')
-rw-r--r-- | .github/docker/Dockerfile-backend | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/docker/Dockerfile-backend b/.github/docker/Dockerfile-backend new file mode 100644 index 0000000..06036e4 --- /dev/null +++ b/.github/docker/Dockerfile-backend @@ -0,0 +1,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 |