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
Renovate Bot ed3b392264
All checks were successful
continuous-integration/drone/push Build is passing
chore(deps): update alpine docker tag to v3.18
2023-05-10 00:03:06 +00:00

20 lines
434 B
Docker

FROM golang:1.19-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.18
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"]}'