aboutsummaryrefslogtreecommitdiff
path: root/.github/docker/Dockerfile
blob: 1f9f72d9f105b0e83f66bd4e73826d441bfa406f (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 go test -v -race -covermode=atomic