mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
20 lines
579 B
Docker
20 lines
579 B
Docker
# build stage
|
|
FROM golang:1.10-alpine AS build-env
|
|
ENV GOPATH=/gocode
|
|
ENV SRC_DIR=/gocode/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 git python py-six
|
|
|
|
WORKDIR $SRC_DIR
|
|
ADD . $SRC_DIR
|
|
RUN make deps
|
|
RUN make
|
|
|
|
# final stage
|
|
FROM alpine
|
|
RUN apk add --no-cache --update bash iproute2 libpcap-dev
|
|
COPY --from=build-env /gocode/src/github.com/bettercap/bettercap/bettercap /app/
|
|
WORKDIR /app
|
|
EXPOSE 80 443 53 5300 8080 8081 8082 8083 8000
|
|
ENTRYPOINT ["/app/bettercap"]
|