diff options
Diffstat (limited to '.github/docker/Dockerfile-backend')
-rw-r--r-- | .github/docker/Dockerfile-backend | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/docker/Dockerfile-backend b/.github/docker/Dockerfile-backend new file mode 100644 index 0000000..82ed29f --- /dev/null +++ b/.github/docker/Dockerfile-backend @@ -0,0 +1,17 @@ +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 go mod download && \ + go build + +ENTRYPOINT go test -v -race -covermode=atomic |