This mainly adds a main.go file in the project root so it's easier to
install pcap-broker using `go install`:
$ go install github.com/fox-it/pcap-broker@latest
Or install the main branch:
$ go install github.com/fox-it/pcap-broker@main
12 lines
186 B
Docker
12 lines
186 B
Docker
FROM golang:alpine
|
|
|
|
RUN apk add --no-cache make build-base libpcap-dev openssh-client tcpdump
|
|
|
|
WORKDIR /app
|
|
COPY . /app
|
|
|
|
RUN go mod download
|
|
RUN go build .
|
|
|
|
ENTRYPOINT ["./pcap-broker"]
|