aboutsummaryrefslogtreecommitdiff
path: root/.github/docker/Dockerfile-backend
diff options
context:
space:
mode:
authorEmiliano Ciavatta2021-07-28 09:50:08 +0000
committerEmiliano Ciavatta2021-07-28 09:50:08 +0000
commitbf6c04e4cc6438dea33a18a1c8bbdfce3876b86f (patch)
treeb9e28e800e2f2282d67c85ed66aae3eca9d604e6 /.github/docker/Dockerfile-backend
parentd10ef21ac4a8d7f865167d783885ed37abe5bd2d (diff)
Update docker tests
Diffstat (limited to '.github/docker/Dockerfile-backend')
-rw-r--r--.github/docker/Dockerfile-backend18
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