20 lines
434 B
Docker
20 lines
434 B
Docker
FROM golang:1.18-alpine3.15 as gobuild
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
WORKDIR /go/src/arp-spoofer
|
|
|
|
ADD cmd ./
|
|
|
|
RUN go build -v -ldflags="-s -w" -o arp-spoofer
|
|
|
|
|
|
FROM alpine:3.16
|
|
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"]}'
|