From 67761ccbfbd2d4b6b73ff4a6d348f75c020dd6f5 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Sat, 13 Jan 2018 05:02:11 +0100 Subject: [PATCH] new: now i'm dockerized ^_^ --- Dockerfile | 17 +++++++++++++---- Makefile | 2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index b4cd388d..d6d3a0fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,19 @@ # iron/go:dev is the alpine image with the go tools added FROM iron/go:dev -WORKDIR /bettercap-ng +MAINTAINER Simone Margaritelli -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 RUN apk add --update ca-certificates; \ @@ -14,8 +23,8 @@ RUN apk add --update ca-certificates; \ libpcap-dev;\ cd $SRC_DIR; \ make deps; \ - make; \ - cp bettercap-ng /bettercap-ng/ + ls -la; pwd; \ + make EXPOSE 80 443 5300 8080 8081 8082 8083 8000 ENTRYPOINT ["./bettercap-ng"] diff --git a/Makefile b/Makefile index a64bbc5f..ae318817 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ build_file: resources resources: @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: @echo "@ Running VET ..."