From b4c9f42725356c3f38a39125b339b10fe900d527 Mon Sep 17 00:00:00 2001 From: Emiliano Ciavatta Date: Wed, 30 Sep 2020 23:14:08 +0200 Subject: Add separate testing dockerfile --- Dockerfile.testing | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile.testing (limited to 'Dockerfile.testing') diff --git a/Dockerfile.testing b/Dockerfile.testing new file mode 100644 index 0000000..3498341 --- /dev/null +++ b/Dockerfile.testing @@ -0,0 +1,18 @@ +FROM ubuntu:20.04 + +# Install tools and libraries +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -qq golang-1.14 pkg-config libpcap-dev libhyperscan-dev yarnpkg + +COPY . /caronte + +WORKDIR /caronte + +RUN ln -sf ../lib/go-1.14/bin/go /usr/bin/go && \ + go mod download && \ + go build && \ + cd frontend && \ + yarnpkg install && \ + yarnpkg build + +CMD ./caronte -- cgit v1.2.3-70-g09d2