This repository has been archived on 2024-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
adlin/pkg/arp-spoofer/Dockerfile

21 lines
405 B
Docker
Raw Normal View History

2021-02-18 02:14:39 +00:00
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"]}'