mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
fix: dockerfile fixes
This commit is contained in:
parent
7605f4afa3
commit
d68da2108d
1 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
||||||
# build stage
|
# build stage
|
||||||
FROM golang:1.16-alpine3.15 AS build-env
|
FROM golang:1.22-alpine3.20 AS build-env
|
||||||
|
|
||||||
ENV SRC_DIR $GOPATH/src/github.com/bettercap/bettercap
|
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 iptables wireless-tools build-base libpcap-dev libusb-dev linux-headers libnetfilter_queue-dev git
|
RUN apk add --no-cache bash gcc g++ binutils iptables wireless-tools build-base libpcap-dev libusb-dev linux-headers libnetfilter_queue-dev git
|
||||||
|
|
||||||
WORKDIR $SRC_DIR
|
WORKDIR $SRC_DIR
|
||||||
ADD . $SRC_DIR
|
ADD . $SRC_DIR
|
||||||
|
@ -15,7 +15,7 @@ RUN mkdir -p /usr/local/share/bettercap
|
||||||
RUN git clone https://github.com/bettercap/caplets /usr/local/share/bettercap/caplets
|
RUN git clone https://github.com/bettercap/caplets /usr/local/share/bettercap/caplets
|
||||||
|
|
||||||
# final stage
|
# final stage
|
||||||
FROM alpine:3.15
|
FROM alpine:3.20
|
||||||
RUN apk add --no-cache ca-certificates
|
RUN apk add --no-cache ca-certificates
|
||||||
RUN apk add --no-cache bash iproute2 libpcap libusb-dev libnetfilter_queue wireless-tools
|
RUN apk add --no-cache 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/bettercap /app/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue