From 5c1feffe2ce89aa88b3c392436655cc46938a777 Mon Sep 17 00:00:00 2001 From: priv <140729444+scriptprivate@users.noreply.github.com> Date: Mon, 8 Jul 2024 18:14:33 -0300 Subject: [PATCH] feat(docker): update Dockerfile to make nipe work in containers (#169) --- Dockerfile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 14817e7..5d261af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,11 +3,25 @@ FROM ubuntu:latest COPY . /usr/src/nipe WORKDIR /usr/src/nipe -EXPOSE 9050 +EXPOSE 9050 9061 RUN apt-get update && \ apt-get install -y cpanminus && \ + apt-get install -y libssl-dev && \ + apt-get install -y libnet-ssleay-perl && \ + apt-get install -y libcrypt-ssleay-perl && \ + apt-get install -y tor && \ + apt-get install -y iptables && \ rm -rf /var/lib/apt/lists/* RUN cpanm --installdeps . -RUN perl nipe.pl install \ No newline at end of file + +RUN chmod +x nipe.pl + +# docker run -d -it --privileged --cap-add=NET_ADMIN nipe +# OR +# docker run -d -it --name nipe-container --privileged --cap-add=NET_ADMIN nipe +# THEN +# docker exec -it ./nipe.pl + +ENTRYPOINT ["/bin/bash"]