mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
refact: some refactoring to the Dockerfile
This commit is contained in:
parent
52623ab277
commit
2a08b483ce
1 changed files with 7 additions and 20 deletions
27
Dockerfile
27
Dockerfile
|
@ -1,29 +1,16 @@
|
||||||
# iron/go:dev is the alpine image with the go tools added
|
|
||||||
FROM iron/go:dev
|
FROM iron/go:dev
|
||||||
|
|
||||||
MAINTAINER Simone Margaritelli <https://evilsocket.net/>
|
MAINTAINER Simone Margaritelli <https://evilsocket.net/>
|
||||||
|
|
||||||
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
|
ENV SRC_DIR=/gocode/src/github.com/evilsocket/bettercap-ng
|
||||||
WORKDIR $SRC_DIR
|
WORKDIR $SRC_DIR
|
||||||
ADD . $SRC_DIR
|
ADD . $SRC_DIR
|
||||||
|
|
||||||
RUN apk add --update ca-certificates; \
|
RUN apk add --update ca-certificates
|
||||||
apk add --no-cache --update \
|
RUN apk add --no-cache --update bash build-base libpcap-dev
|
||||||
bash \
|
|
||||||
build-base \
|
|
||||||
libpcap-dev;\
|
|
||||||
cd $SRC_DIR; \
|
|
||||||
make deps; \
|
|
||||||
make
|
|
||||||
|
|
||||||
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"]
|
ENTRYPOINT ["./bettercap"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue