aboutsummaryrefslogtreecommitdiff
path: root/.github/docker/Dockerfile-backend
diff options
context:
space:
mode:
authorEmiliano Ciavatta2021-07-28 18:12:14 +0000
committerEmiliano Ciavatta2021-07-28 18:12:14 +0000
commit99cfe84c23f3beb8baf76b799ace1b3ffbf1d5ff (patch)
tree41d8bbbe2f46051aeebf5b4ae73c46325c4bf7c6 /.github/docker/Dockerfile-backend
parentfdb0bf97d2dec72adf08e5f2d7ad65b560d8cf8e (diff)
parentf60d7cb1da70d439cd401e2fa4b7ecccec41bfe4 (diff)
Merge branch 'release/1.21.0' into main
Diffstat (limited to '.github/docker/Dockerfile-backend')
-rw-r--r--.github/docker/Dockerfile-backend17
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