From 2a08b483ce261db90db2e4a5282ff0b348317732 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Sat, 13 Jan 2018 14:56:28 +0100 Subject: [PATCH] refact: some refactoring to the Dockerfile --- Dockerfile | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index d650e2c4..8b299b8e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,29 +1,16 @@ -# iron/go:dev is the alpine image with the go tools added FROM iron/go:dev - MAINTAINER Simone Margaritelli -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; \ - apk add --no-cache --update \ - bash \ - build-base \ - libpcap-dev;\ - cd $SRC_DIR; \ - make deps; \ - make +RUN apk add --update ca-certificates +RUN apk add --no-cache --update bash build-base libpcap-dev -EXPOSE 80 443 5300 8080 8081 8082 8083 8000 +RUN cd $SRC_DIR +RUN make deps +RUN make + +EXPOSE 80 443 53 5300 8080 8081 8082 8083 8000 ENTRYPOINT ["./bettercap"]