fix: fixed docker build

This commit is contained in:
Simone Margaritelli 2024-08-09 11:14:36 +02:00
commit 107c8fdf99

View file

@ -1,13 +1,11 @@
# build stage # build stage
FROM golang:1.22-alpine3.20 AS build-env FROM golang:1.22-alpine3.20 AS build-env
ENV SRC_DIR $GOPATH/src/github.com/bettercap/bettercap
RUN apk add --no-cache ca-certificates RUN apk add --no-cache ca-certificates
RUN apk add --no-cache bash gcc g++ binutils iptables wireless-tools build-base libpcap-dev libusb-dev linux-headers libnetfilter_queue-dev git RUN apk add --no-cache bash gcc g++ binutils-gold iptables wireless-tools build-base libpcap-dev libusb-dev linux-headers libnetfilter_queue-dev git
WORKDIR $SRC_DIR WORKDIR $GOPATH/src/github.com/bettercap/bettercap
ADD . $SRC_DIR ADD . $GOPATH/src/github.com/bettercap/bettercap
RUN make RUN make
# get caplets # get caplets