aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 00926285797bec0d3d5cc17e33ff7331332ea104 (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 git golang-1.14 pkg-config libpcap-dev libhyperscan-dev yarnpkg

RUN ln -sf ../lib/go-1.14/bin/go /usr/bin/go

ENV GIN_MODE release

COPY . /caronte

WORKDIR /caronte

RUN go mod download && go build

RUN cd frontend && yarnpkg install && yarnpkg build

CMD ./caronte