aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: d7ab1f2a0aa4138afcc2797949bfba673d525933 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ubuntu:20.04

# Install tools and libraries
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -qq git golang libpcap-dev libhyperscan-dev npm

ENV GIN_MODE release

COPY . /caronte

WORKDIR /caronte

RUN go mod download && go build

RUN npm i --global yarn && cd frontend && yarn install && yarn build

CMD ./caronte