mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
new: now i'm dockerized ^_^
This commit is contained in:
parent
9ac3084a74
commit
67761ccbfb
2 changed files with 14 additions and 5 deletions
17
Dockerfile
17
Dockerfile
|
@ -1,10 +1,19 @@
|
||||||
# iron/go:dev is the alpine image with the go tools added
|
# iron/go:dev is the alpine image with the go tools added
|
||||||
FROM iron/go:dev
|
FROM iron/go:dev
|
||||||
|
|
||||||
WORKDIR /bettercap-ng
|
MAINTAINER Simone Margaritelli <https://evilsocket.net/>
|
||||||
|
|
||||||
ENV SRC_DIR=/go/src/github.com/evilocket/bettercap-ng
|
LABEL Package="BetterCAP" \
|
||||||
|
Version="Latest-Stable" \
|
||||||
|
Description="BetterCAP the state of the art, modular, portable and easily extensible MITM framework in a Container" \
|
||||||
|
Destro="Alpine Linux" \
|
||||||
|
GitHub="https://github.com/evilsocket/bettercap-ng" \
|
||||||
|
DockerHub="https://hub.docker.com/r/evilsocket/bettercap-ng/" \
|
||||||
|
Maintainer="Simone Margaritelli"
|
||||||
|
|
||||||
|
|
||||||
|
ENV SRC_DIR=/gocode/src/github.com/evilsocket/bettercap-ng
|
||||||
|
WORKDIR $SRC_DIR
|
||||||
ADD . $SRC_DIR
|
ADD . $SRC_DIR
|
||||||
|
|
||||||
RUN apk add --update ca-certificates; \
|
RUN apk add --update ca-certificates; \
|
||||||
|
@ -14,8 +23,8 @@ RUN apk add --update ca-certificates; \
|
||||||
libpcap-dev;\
|
libpcap-dev;\
|
||||||
cd $SRC_DIR; \
|
cd $SRC_DIR; \
|
||||||
make deps; \
|
make deps; \
|
||||||
make; \
|
ls -la; pwd; \
|
||||||
cp bettercap-ng /bettercap-ng/
|
make
|
||||||
|
|
||||||
EXPOSE 80 443 5300 8080 8081 8082 8083 8000
|
EXPOSE 80 443 5300 8080 8081 8082 8083 8000
|
||||||
ENTRYPOINT ["./bettercap-ng"]
|
ENTRYPOINT ["./bettercap-ng"]
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -22,7 +22,7 @@ build_file: resources
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
@echo "@ Compiling resources into go files ..."
|
@echo "@ Compiling resources into go files ..."
|
||||||
@go-bindata -o net/oui_compiled.go -pkg net net/oui.dat
|
@$(GOPATH)/bin/go-bindata -o net/oui_compiled.go -pkg net net/oui.dat
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
@echo "@ Running VET ..."
|
@echo "@ Running VET ..."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue