new: now i'm dockerized ^_^

This commit is contained in:
evilsocket 2018-01-13 05:02:11 +01:00
commit 67761ccbfb
2 changed files with 14 additions and 5 deletions

View file

@ -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"]

View file

@ -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 ..."