arp-spoofer: new package
This commit is contained in:
parent
671427649d
commit
58b6a827d0
5 changed files with 150 additions and 1 deletions
20
pkg/arp-spoofer/Dockerfile
Normal file
20
pkg/arp-spoofer/Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
FROM golang:alpine as gobuild
|
||||
|
||||
RUN apk add --no-cache git
|
||||
|
||||
WORKDIR /go/src/arp-spoofer
|
||||
|
||||
ADD cmd ./
|
||||
|
||||
RUN go get -d -v
|
||||
RUN go build -v
|
||||
|
||||
|
||||
FROM alpine
|
||||
MAINTAINER Pierre-Olivier Mercier <nemunaire@nemunai.re>
|
||||
|
||||
COPY --from=gobuild /go/src/arp-spoofer/arp-spoofer /bin/arp-spoofer
|
||||
|
||||
ENTRYPOINT ["/bin/arp-spoofer", "-bind=:8081"]
|
||||
|
||||
LABEL org.mobyproject.config='{"capabilities": ["CAP_NET_ADMIN", "CAP_NET_RAW"]}'
|
||||
Reference in a new issue