aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.testing
blob: 3498341ec5bb257a4ff437a8048f1f74072faf05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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