mirror of
https://github.com/bettercap/bettercap
synced 2025-07-29 19:20:00 -07:00
Merge pull request #267 from h-a-t/master
Dockerfile rework, Fix #123, #127 & #231, includes caplets
This commit is contained in:
commit
1c474c85d2
1 changed files with 8 additions and 3 deletions
11
Dockerfile
11
Dockerfile
|
@ -1,9 +1,9 @@
|
||||||
# build stage
|
# build stage
|
||||||
FROM golang:1.10-alpine AS build-env
|
FROM golang:alpine AS build-env
|
||||||
|
|
||||||
ENV SRC_DIR $GOPATH/src/github.com/bettercap/bettercap
|
ENV SRC_DIR $GOPATH/src/github.com/bettercap/bettercap
|
||||||
|
|
||||||
RUN apk add --update ca-certificates
|
RUN apk add --update ca-certificates
|
||||||
RUN apk add --no-cache --update bash iptables wireless-tools build-base libpcap-dev linux-headers libnetfilter_queue-dev git
|
RUN apk add --no-cache --update bash iptables wireless-tools build-base libpcap-dev linux-headers libnetfilter_queue-dev git
|
||||||
|
|
||||||
WORKDIR $SRC_DIR
|
WORKDIR $SRC_DIR
|
||||||
|
@ -12,10 +12,15 @@ RUN go get -u github.com/golang/dep/...
|
||||||
RUN make deps
|
RUN make deps
|
||||||
RUN make
|
RUN make
|
||||||
|
|
||||||
|
# get caplets
|
||||||
|
RUN git clone https://github.com/bettercap/caplets
|
||||||
|
|
||||||
# final stage
|
# final stage
|
||||||
FROM alpine
|
FROM alpine
|
||||||
RUN apk add --no-cache --update bash iproute2 libpcap libnetfilter_queue
|
RUN apk add --no-cache --update bash iproute2 libpcap 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/
|
||||||
|
COPY --from=build-env /go/src/github.com/bettercap/bettercap/caplets /app/
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
EXPOSE 80 443 53 5300 8080 8081 8082 8083 8000
|
EXPOSE 80 443 53 5300 8080 8081 8082 8083 8000
|
||||||
ENTRYPOINT ["/app/bettercap"]
|
ENTRYPOINT ["/app/bettercap"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue