mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 18:57:17 -07:00
fix: fixed libusb issue in Dockerfile (fixes #480)
This commit is contained in:
parent
603735adb6
commit
6d4d47a326
1 changed files with 4 additions and 3 deletions
|
@ -4,7 +4,7 @@ FROM golang:alpine AS build-env
|
|||
ENV SRC_DIR $GOPATH/src/github.com/bettercap/bettercap
|
||||
|
||||
RUN apk add --update ca-certificates
|
||||
RUN apk add --no-cache --update bash iptables wireless-tools build-base libpcap-dev libusb-1.0-dev linux-headers libnetfilter_queue-dev git
|
||||
RUN apk add --no-cache --update bash iptables wireless-tools build-base libpcap-dev libusb-dev linux-headers libnetfilter_queue-dev git
|
||||
|
||||
WORKDIR $SRC_DIR
|
||||
ADD . $SRC_DIR
|
||||
|
@ -13,11 +13,12 @@ RUN make deps
|
|||
RUN make
|
||||
|
||||
# get caplets
|
||||
RUN git clone https://github.com/bettercap/caplets
|
||||
RUN mkdir -p /usr/local/share/bettercap
|
||||
RUN git clone https://github.com/bettercap/caplets /usr/local/share/bettercap/caplets
|
||||
|
||||
# final stage
|
||||
FROM alpine
|
||||
RUN apk add --no-cache --update bash iproute2 libpcap libnetfilter_queue wireless-tools
|
||||
RUN apk add --no-cache --update bash iproute2 libpcap libusb-dev libnetfilter_queue wireless-tools
|
||||
COPY --from=build-env /go/src/github.com/bettercap/bettercap/bettercap /app/
|
||||
COPY --from=build-env /go/src/github.com/bettercap/bettercap/caplets /app/
|
||||
WORKDIR /app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue